-
Notifications
You must be signed in to change notification settings - Fork 1
Gradle Setup
PiggyPiglet edited this page Dec 23, 2019
·
7 revisions
Gradle is a java build tool, similar to maven, but instead of using XML for it's configs, it uses the groovy language, and also provides more functionality than maven. Onto the setup though, here's a basic project setup you can use:
plugins {
id 'java'
id 'idea'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group '%group id%'
version '%version%'
mainClassName = '%main class%'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url = 'https://repo.piggypiglet.me/repository/maven-releases/'
}
}
dependencies {
compile 'me.piggypiglet:framework-core:+'
}
shadowJar {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
relocate 'me.piggypiglet.framework', '%package%.framework'
}