Update build.gradle.kts
This commit is contained in:
@@ -69,7 +69,17 @@ subprojects {
|
||||
if (System.getenv("JITPACK") != null)
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
maven(url = "https://jitpack.io")
|
||||
exclusiveContent {
|
||||
forRepository {
|
||||
maven {
|
||||
url = uri("https://jitpack.io")
|
||||
}
|
||||
}
|
||||
filter {
|
||||
includeGroup("com.github.petitparser.java-petitparser")
|
||||
includeModule("com.github.petitparser", "java-petitparser")
|
||||
}
|
||||
}
|
||||
maven(url = "https://mvnrepository.com/artifact")
|
||||
|
||||
exclusiveContent {
|
||||
@@ -125,6 +135,15 @@ subprojects {
|
||||
maven {
|
||||
url = uri("$buildDir/repo")
|
||||
}
|
||||
if (System.getProperty("REPO-URL") != null) {
|
||||
maven {
|
||||
url = uri(System.getProperty("REPO-URL"))
|
||||
credentials {
|
||||
username = System.getProperty("REPO-USERNAME")
|
||||
password = System.getProperty("REPO-PASSWORD")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
register("mavenJava", MavenPublication::class) {
|
||||
@@ -137,6 +156,8 @@ subprojects {
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
withType<JavaCompile> {
|
||||
|
||||
Reference in New Issue
Block a user