mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +00:00
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
import com.dfsek.terra.configureCompilation
|
|
import com.dfsek.terra.configureDependencies
|
|
|
|
plugins {
|
|
`java-library`
|
|
`maven-publish`
|
|
idea
|
|
}
|
|
|
|
configureCompilation()
|
|
configureDependencies()
|
|
|
|
group = "com.dfsek.terra.common"
|
|
|
|
dependencies {
|
|
"shadedApi"(project(":common:api"))
|
|
|
|
|
|
"shadedApi"("commons-io:commons-io:2.6")
|
|
|
|
|
|
"compileOnly"("com.google.guava:guava:30.0-jre")
|
|
|
|
"testImplementation"("com.google.guava:guava:30.0-jre")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
artifact(tasks["sourcesJar"])
|
|
artifact(tasks["jar"])
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
val mavenUrl = "https://repo.codemc.io/repository/maven-releases/"
|
|
val mavenSnapshotUrl = "https://repo.codemc.io/repository/maven-snapshots/"
|
|
|
|
maven(mavenUrl) {
|
|
val mavenUsername: String? by project
|
|
val mavenPassword: String? by project
|
|
if (mavenUsername != null && mavenPassword != null) {
|
|
credentials {
|
|
username = mavenUsername
|
|
password = mavenPassword
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |