2019-08-26 04:45:03 +00:00
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.kotlin.dsl.repositories
|
|
|
|
|
|
|
|
fun Project.applyCommonConfiguration() {
|
|
|
|
group = rootProject.group
|
|
|
|
version = rootProject.version
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
2020-04-21 10:39:42 +00:00
|
|
|
maven { url = uri("https://plotsquared.com/mvn/") }
|
2019-08-26 04:45:03 +00:00
|
|
|
maven { url = uri("https://maven.sk89q.com/repo/") }
|
|
|
|
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
|
2020-04-21 10:39:42 +00:00
|
|
|
maven { url = uri("https://ci.athion.net/plugin/repository/tools/") }
|
2019-08-26 04:45:03 +00:00
|
|
|
maven { url = uri("https://repo.destroystokyo.com/repository/maven-public") }
|
|
|
|
ivy { url = uri("https://ci.athion.net/job")
|
|
|
|
patternLayout {
|
2019-08-26 05:03:58 +00:00
|
|
|
artifact("/[organisation]/[revision]/artifact/[module].[ext]")
|
2019-08-26 04:45:03 +00:00
|
|
|
}}
|
|
|
|
}
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
2020-01-11 03:32:12 +00:00
|
|
|
cacheChangingModulesFor(5, "minutes")
|
2019-08-26 04:45:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|