Iltotore / ManaDrop

A Gradle plugin for Minecraft development
Apache License 2.0
32 stars 5 forks source link

plugin.yml #5

Closed iGabyTM closed 4 years ago

iGabyTM commented 4 years ago

What is the format to generate a plugin.yml? Tried to follow the example but I get this:

A problem occurred evaluating root project 'keyvaults'.
> No signature of method: static fr.il_totore.manadrop.MinecraftDependencyHelper.spigot() is applicable for argument types: (build_ae1s5lnbkkxoqlk6r1tdmmbnv$_run_closure5) values: [build_ae1s5lnbkkxoqlk6r1tdmmbnv$_run_closure5@38f8838c]
  Possible solutions: spigot(java.lang.String), spigotApi(java.lang.String), split(groovy.lang.Closure), wait(), wait(long), print(java.lang.Object)
Iltotore commented 4 years ago

Can you show your build.gradle ?

iGabyTM commented 4 years ago
import static fr.il_totore.manadrop.MinecraftDependencyHelper.*
import static fr.il_totore.manadrop.MinecraftRepositoryHelper.*

plugins {
    id 'java'
    id 'fr.il_totore.manadrop' version '0.4.1-SNAPSHOT'
    id 'com.github.johnrengelman.shadow' version '6.0.0'
}

group 'me.gabytm.c'
version '1.0.0'

sourceCompatibility = JavaVersion.VERSION_1_8

repositories {
    mavenCentral()
    mavenLocal()

    spigotSnapshot()
    sonatype()

    maven {
        url = 'https://repo.codemc.org/repository/maven-public/'
    }
}

dependencies {
    implementation 'de.tr7zw:item-nbt-api:+'
    implementation 'me.mattstudios.utils:matt-framework:+'
    implementation 'me.mattstudios.utils:matt-framework-gui:+'

    compileOnly 'com.hazebyte:CrateReloaded:2.0.23'
    compileOnly spigotApi('1.8.8')
}

shadowJar {
    archiveName("KeyVaults [${project.version}].jar")
    relocate 'de.tr7zw.changeme.nbtapi', 'me.gabytm.c.keyvaults.libs.de.tr7zw.nbtapi'
    relocate 'me.mattstudios.mfgui', 'me.gabytm.c.keyvaults.libs.me.mattstudios.mfgui'
    relocate 'me.mattstudios.mf', 'me.gabytm.c.keyvaults.libs.me.mattstudios.mf'
}

task copyJarToServer(type: Copy) {
    from shadowJar
    into "D:/Projects/MinecraftServers/1.8.8/plugins"
}

spigot {
    desc {
        named 'KeyVaults'
        version project.version
        main 'me.gabytm.c.keyvaults.KeyVaults'
    }
}

processResources.finalizedBy(spigotPlugin)
iGabyTM commented 4 years ago

@Iltotore

Iltotore commented 4 years ago

Sorry, Orange installed the fiber and they are the slowest ISP ever lol.

Just change your import...MinecraftDependencyHelper.* to import...MinecraftDependencyHelper.spigotApi

I hope I'm not too late.

If you have any question feel free to reopen this issue.