FreedomNetworkSuite/build.gradle

88 lines
1.9 KiB
Groovy
Raw Normal View History

2023-04-14 01:24:40 +00:00
plugins {
id 'java'
id 'java-library'
id 'net.minecrell.plugin-yml.bukkit' version '0.6.0'
2023-04-14 01:24:40 +00:00
}
2023-08-23 01:53:27 +00:00
group 'fns'
2023-04-14 01:24:40 +00:00
version '1.0.0'
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'net.minecrell.plugin-yml.bukkit'
2023-04-14 01:24:40 +00:00
repositories {
jcenter()
mavenCentral()
maven {
2023-08-23 16:24:06 +00:00
name = 'Paper'
url = 'https://repo.papermc.io/repository/maven-snapshots/'
2023-04-14 01:24:40 +00:00
}
maven {
name = "Aikar"
url = 'https://repo.aikar.co/content/groups/aikar/'
}
maven {
name = "JitPack"
url = 'https://jitpack.io'
}
}
bukkit {
apiVersion = "1.20"
authors = {"allinkdev",
"Paldiu",
"evallll",
"FlorianMichael/EnZaXD",
"VideoGameSmash12"}
}
2023-04-14 01:24:40 +00:00
dependencies {
2023-08-23 16:24:06 +00:00
compileOnly 'io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT'
2023-04-14 01:24:40 +00:00
compileOnly 'org.javassist:javassist:3.29.1-GA'
compileOnly 'org.apache.commons:commons-lang3:3.12.0'
compileOnly 'org.apache.commons:commons-collections4:4.2'
compileOnly 'com.google.guava:guava:31.1-jre'
compileOnly 'com.google.code.gson:gson:2.8.8'
compileOnly 'io.github.classgraph:classgraph:4.8.162'
2023-04-14 01:24:40 +00:00
compileOnly 'org.slf4j:slf4j-api:1.7.36'
}
2023-05-15 06:30:37 +00:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
2023-04-14 01:24:40 +00:00
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
2023-05-15 06:30:37 +00:00
var weight = -1;
2023-04-14 01:24:40 +00:00
afterEvaluate {
if (weight == -1) {
weight = 0
}
}
javadoc {
options {
encoding = 'UTF-8'
}
}
2023-04-14 01:24:40 +00:00
}
tasks.register('buildChain') {
dependsOn subprojects.sort {
a, b -> a.properties.weight <=> b.properties.weight
}.collect {
":${it.path}:build"
}
}