Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-14 15:10:05 +01:00
b96cea75b8
609c7b8 Scrapped Logging Framework 4 Java Closes #997 Closes #998 Closes #999 Closes #1000 Closes #1001 Closes #1002
76 Zeilen
2.3 KiB
Kotlin
76 Zeilen
2.3 KiB
Kotlin
import org.gradle.api.Project
|
|
import org.gradle.api.plugins.JavaPluginExtension
|
|
import org.gradle.jvm.toolchain.JavaLanguageVersion
|
|
import org.gradle.kotlin.dsl.dependencies
|
|
import org.gradle.kotlin.dsl.get
|
|
import org.gradle.kotlin.dsl.repositories
|
|
import org.gradle.kotlin.dsl.the
|
|
|
|
fun Project.applyCommonConfiguration() {
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
name = "IntellectualSites"
|
|
url = uri("https://mvn.intellectualsites.com/content/groups/public/")
|
|
}
|
|
maven {
|
|
name = "EngineHub"
|
|
url = uri("https://maven.enginehub.org/repo/")
|
|
}
|
|
maven {
|
|
name = "OSS Sonatype Snapshots"
|
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
}
|
|
maven {
|
|
name = "OSS Sonatype Releases"
|
|
url = uri("https://oss.sonatype.org/content/repositories/releases/")
|
|
}
|
|
maven {
|
|
name = "Athion"
|
|
url = uri("https://ci.athion.net/plugin/repository/tools/")
|
|
}
|
|
}
|
|
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
cacheChangingModulesFor(5, "MINUTES")
|
|
}
|
|
}
|
|
|
|
configurations.findByName("compileClasspath")?.apply {
|
|
resolutionStrategy.componentSelection {
|
|
withModule("org.slf4j:slf4j-api") {
|
|
reject("No SLF4J allowed on compile classpath")
|
|
}
|
|
}
|
|
}
|
|
|
|
plugins.withId("java") {
|
|
the<JavaPluginExtension>().toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(8))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
constraints {
|
|
for (conf in configurations.names) {
|
|
add(conf, "com.google.guava:guava") {
|
|
version { strictly(Versions.GUAVA) }
|
|
because("Mojang provides Guava")
|
|
}
|
|
add(conf, "com.google.code.gson:gson") {
|
|
version { strictly(Versions.GSON) }
|
|
because("Mojang provides Gson")
|
|
}
|
|
add(conf, "it.unimi.dsi:fastutil") {
|
|
version { strictly(Versions.FAST_UTIL) }
|
|
because("Mojang provides FastUtil")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|