mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-06-30 20:56:41 +00:00
Init
This commit is contained in:
73
build.gradle
Normal file
73
build.gradle
Normal file
@ -0,0 +1,73 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
group 'me.totalfreedom'
|
||||
version '1.0.0'
|
||||
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'java-library'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
|
||||
maven {
|
||||
name = 'Paper'
|
||||
url = 'https://repo.papermc.io/repository/maven-public/'
|
||||
}
|
||||
|
||||
maven {
|
||||
name = "Aikar"
|
||||
url = 'https://repo.aikar.co/content/groups/aikar/'
|
||||
}
|
||||
|
||||
maven {
|
||||
name = "JitPack"
|
||||
url = 'https://jitpack.io'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
|
||||
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.projectreactor:reactor-core:3.5.4'
|
||||
compileOnly 'org.reflections:reflections:0.10.2'
|
||||
compileOnly 'org.slf4j:slf4j-api:1.7.36'
|
||||
compileOnly 'co.aikar:acf-paper:0.5.1-SNAPSHOT'
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.17
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
ext {
|
||||
weight = -1
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
if (weight == -1) {
|
||||
weight = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('buildChain') {
|
||||
dependsOn subprojects.sort {
|
||||
a, b -> a.properties.weight <=> b.properties.weight
|
||||
}.collect {
|
||||
":${it.path}:build"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user