Skip to content

Commit

Permalink
Update versioning plugin and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jan 7, 2024
1 parent 2e444ce commit d5cde26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 36 deletions.
38 changes: 5 additions & 33 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,41 +108,13 @@ subprojects { p ->
jar {
manifest {
attributes([
'Implementation-Commit-Time': managedVersioning.timestamp.get(),
'Implementation-Commit': managedVersioning.hash.get()
'Implementation-Commit-Time': managedVersioning.timestamp.get(),
'Implementation-Commit': managedVersioning.hash.get()
])
}
}

publishing {
repositories {
if (System.getenv('PR_NUMBER')) {
maven {
name = 'LocalMaven'
url = rootProject.layout.buildDirectory.dir('repo')
}
} else if (System.getenv('MAVEN_PASSWORD')) {
maven {
name = 'PersonalMaven'
url = uri(System.getenv('SNAPSHOT_MAVEN_URL') ?: System.getenv('MAVEN_URL'))
credentials {
username = System.getenv('MAVEN_USER')
password = System.getenv('MAVEN_PASSWORD')
}
}
}
}
}
}

javadoc {
source subprojects.collect { it.sourceSets.main.allJava }
classpath = files(subprojects.collect { it.sourceSets.main.compileClasspath })
include "**/api/**"
}

tasks.register('prepareJavadoc', Copy) {
dependsOn tasks.javadoc
from tasks.javadoc.outputs
into layout.buildDirectory.dir("prepareJavadoc/${project.group.replace('.','/')}/${project.version.split('\\.')[0]}")
managedVersioning.publishing.mavenPullRequest(publishing)
managedVersioning.publishing.mavenSnapshot(publishing)
managedVersioning.publishing.mavenRelease(publishing)
}
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ autoservice = "1.1.1"
architectury_loom = "1.4.373"
quilt_licenser = "2.0.1"

dynassetgen = "5.1.1"
defaultresources = "3.2.0"
dynassetgen = "5.1.2"
defaultresources = "3.2.1"

mixinextras = "0.3.2"

Expand All @@ -27,7 +27,7 @@ jspecify = "0.3.0"

minotaur = "2.8.3"

managedversioning = "1.2.3"
managedversioning = "1.2.4"

[libraries]
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
Expand Down

0 comments on commit d5cde26

Please sign in to comment.