mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
create language-yaml addons
This commit is contained in:
parent
f12d23b4cb
commit
d2aa7cf5d5
47
common/addons/language-yaml/build.gradle.kts
Normal file
47
common/addons/language-yaml/build.gradle.kts
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
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"))
|
||||||
|
"compileOnly"("com.google.guava:guava:30.0-jre")
|
||||||
|
|
||||||
|
"shadedApi"("com.dfsek.tectonic:yaml:2.0.0")
|
||||||
|
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -32,6 +32,7 @@ include("common:addons:config-tree")
|
|||||||
|
|
||||||
include("common:addons:structure-terrascript-loader")
|
include("common:addons:structure-terrascript-loader")
|
||||||
|
|
||||||
|
include("common:addons:language-yaml")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user