Solved processResources

Discussion in 'Spigot Plugin Development' started by chochoco4777, Jul 29, 2021.

Thread Status:
Not open for further replies.
  1. I wrote build.gradle to replace the version in plugin.yml. It cannot be replaced. What's the problem?

    Code (Text):
    processResources {
        from(sourceSets.main.resources.srcDirs) {
            filter ReplaceTokens, tokens: [version: version]
        }
    }
    After build when I look at the plugin plugin.yml it says unspecified. How do I fix it?
     
  2. Shouldn't the variable be 'project.version'?
     
  3. already solved.
     
Thread Status:
Not open for further replies.