2019-08-26 06:45:03 +02:00
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.kotlin.dsl.repositories
|
|
|
|
|
|
|
|
fun Project.applyCommonConfiguration() {
|
|
|
|
group = rootProject.group
|
|
|
|
version = rootProject.version
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
2021-01-18 21:58:50 +01:00
|
|
|
maven {
|
2021-01-21 13:07:17 +01:00
|
|
|
name = "IntellectualSites"
|
|
|
|
url = uri("https://mvn.intellectualsites.com/content/groups/public/")
|
|
|
|
content {
|
|
|
|
includeGroup("com.plotsquared")
|
|
|
|
includeGroup("com.intellectualsites.paster")
|
|
|
|
includeGroup("com.github.intellectualsites.plotsquared")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "EngineHub Repository"
|
2021-01-18 21:58:50 +01:00
|
|
|
url = uri("https://maven.enginehub.org/repo/")
|
2021-01-08 03:31:24 +01:00
|
|
|
content {
|
2021-01-21 13:07:17 +01:00
|
|
|
includeGroup("com.sk89q")
|
|
|
|
includeGroup("com.sk89q.lib")
|
|
|
|
includeGroupByRegex("org.enginehub.*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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/")
|
|
|
|
content {
|
|
|
|
includeGroup("com.massivecraft")
|
|
|
|
includeGroup("com.thevoxelbox.voxelsniper")
|
|
|
|
includeGroup("com.palmergames.bukkit")
|
|
|
|
includeGroup("net.fabiozumbi12")
|
|
|
|
includeGroupByRegex("com.destroystokyo.*")
|
2021-01-08 03:31:24 +01:00
|
|
|
}
|
|
|
|
}
|
2019-08-26 06:45:03 +02:00
|
|
|
}
|
2020-08-14 05:37:28 +02:00
|
|
|
|
2019-08-26 06:45:03 +02:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
2020-07-14 04:50:59 +02:00
|
|
|
cacheChangingModulesFor(5, "MINUTES")
|
2019-08-26 06:45:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|