Re-add package-info generation

This commit is contained in:
Kneelawk 2024-04-17 12:21:28 -07:00 committed by Jozufozu
parent f728ca4a4e
commit 7aed7c7ad1
4 changed files with 10 additions and 4 deletions

2
.gitignore vendored
View file

@ -6,7 +6,6 @@ build/
gradle-app.setting
out/
logs/
dist/
## IntelliJ IDEA
@ -47,3 +46,4 @@ local.properties
# Other
mcmodsrepo
src/*/generatedPackageInfos/
*/src/*/generatedPackageInfos/

View file

@ -100,6 +100,8 @@ void addManifest(jarTask) {
}
}
apply from: rootProject.file('gradle/package-infos.gradle')
publishing {
publications {
register('mavenJava', MavenPublication) {
@ -114,7 +116,7 @@ publishing {
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
url "file://${rootProject.projectDir}/mcmodsrepo"
}
if (project.hasProperty('mavendir')) {

View file

@ -132,6 +132,8 @@ void addManifest(jarTask) {
}
}
apply from: rootProject.file('gradle/package-infos.gradle')
publishing {
publications {
register('mavenJava', MavenPublication) {
@ -141,7 +143,7 @@ publishing {
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
url "file://${rootProject.projectDir}/mcmodsrepo"
}
if (project.hasProperty('mavendir')) {

View file

@ -128,6 +128,8 @@ void addManifest(jarTask) {
}
}
apply from: rootProject.file('gradle/package-infos.gradle')
publishing {
publications {
register('mavenJava', MavenPublication) {
@ -137,7 +139,7 @@ publishing {
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
url "file://${rootProject.projectDir}/mcmodsrepo"
}
if (project.hasProperty('mavendir')) {