[build] project structure and publishing improvements
This commit is contained in:
@@ -2,24 +2,17 @@ plugins {
|
||||
java
|
||||
`java-library`
|
||||
jacoco
|
||||
`maven-publish`
|
||||
alias(libs.plugins.lombok)
|
||||
id("de.siphalor.tweed5.publishing")
|
||||
id("de.siphalor.tweed5.local-runtime-only")
|
||||
id("de.siphalor.tweed5.expanded-sources-jar")
|
||||
}
|
||||
|
||||
group = rootProject.group
|
||||
version = rootProject.version
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.main.get())
|
||||
targetCompatibility = JavaVersion.toVersion(libs.versions.java.main.get())
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
val testAgent = configurations.dependencyScope("mockitoAgent")
|
||||
val testAgentClasspath = configurations.resolvable("testAgentClasspath") {
|
||||
isTransitive = false
|
||||
|
||||
@@ -7,6 +7,7 @@ plugins {
|
||||
}
|
||||
|
||||
val expandedSourcesElements = configurations.consumable("expandedSourcesElements") {
|
||||
extendsFrom(configurations.implementation.get())
|
||||
attributes {
|
||||
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
|
||||
attribute(DocsType.DOCS_TYPE_ATTRIBUTE, objects.named(DocsType.SOURCES))
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
plugins {
|
||||
`maven-publish`
|
||||
alias(libs.plugins.shadow)
|
||||
id("de.siphalor.tweed5.expanded-sources-jar")
|
||||
java
|
||||
`java-library`
|
||||
id("de.siphalor.tweed5.minecraft.mod.component")
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
plugins {
|
||||
java
|
||||
id("de.siphalor.tweed5.minecraft.mod.base")
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
plugins {
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
group = rootProject.group
|
||||
version = rootProject.version
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
if (project.hasProperty("siphalor.maven.user")) {
|
||||
maven {
|
||||
name = "Siphalor"
|
||||
url = uri("https://maven.siphalor.de/upload.php")
|
||||
credentials {
|
||||
username = project.property("siphalor.maven.user") as String
|
||||
password = project.property("siphalor.maven.password") as String
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publications.all {
|
||||
if (this is MavenPublication) {
|
||||
pom {
|
||||
url.set("https://github.com/Siphalor/tweed-5")
|
||||
scm {
|
||||
url.set("https://github.com/Siphalor/tweed-5")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,10 +3,6 @@ plugins {
|
||||
alias(libs.plugins.lombok)
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":tweed5-serde-api"))
|
||||
implementation(platform(libs.junit.platform))
|
||||
|
||||
Reference in New Issue
Block a user