Plex-FAWE/buildSrc/src/main/kotlin/CommonConfig.kt

28 lines
981 B
Kotlin
Raw Normal View History

2019-08-20 18:52:24 +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()
maven { url = uri("http://ci.athion.net/job/PlotSquared-Breaking/ws/mvn/") }
maven { url = uri("https://maven.sk89q.com/repo/") }
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
maven { url = uri("http://empcraft.com/maven2") }
maven { url = uri("https://repo.destroystokyo.com/repository/maven-public") }
2019-08-20 19:23:14 +00:00
//maven { url = uri("https://ci.athion.net/job/FAWE-Piston/ws/") }
2019-08-20 18:52:24 +00:00
ivy { url = uri("https://ci.athion.net/job")
patternLayout {
2019-08-20 19:30:55 +00:00
artifact("/[organisation]/ws/[module].[ext]")
2019-08-20 18:52:24 +00:00
}}
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor(5, "minutes")
}
}
}