Question How do I use the paper equivalent of BuildTools in java not kotlin

senneb

New member
Jun 22, 2022
15
0
1
I only found a way to use it whit kotlin. And how do I add dependencies to gradle?
 

Machine Maker

Paper Developer
Staff member
Dec 17, 2021
132
6
19
18
California
They have slightly different syntax. .kts means you are using the Kotlin DSL for that file, without .kts means you are using groovy. They just have slight different syntax.
 

senneb

New member
Jun 22, 2022
15
0
1
I figured it out but got another problem
Code:
Execution failed for task ':processResources'.
> Entry plugin.yml is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
Do you know what this error means?
And where do I set the compile location?
 
Last edited:

Machine Maker

Paper Developer
Staff member
Dec 17, 2021
132
6
19
18
California
Do you have two plugin.yml files? It sounds like its trying to include the plugin.yml from src/main/resources but can't because a file with the same name has already been added.