Updated changelog and modified the build gradle for jenkins

This commit is contained in:
Michael Hillcox 2020-11-20 16:58:55 +00:00
parent e0c3024400
commit 45bbe23f5a
No known key found for this signature in database
GPG key ID: 971C5B254742488F
2 changed files with 39 additions and 18 deletions

View file

@ -13,6 +13,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'maven-publish'
version = "1.12.2-r152" version = "1.12.2-r152"
group = "de.ellpeck.actuallyadditions" group = "de.ellpeck.actuallyadditions"
@ -67,18 +68,21 @@ processResources {
jar { jar {
} }
task deobfJar(type: Jar) { task deobfJar(type: Jar) {
from sourceSets.main.output from(sourceSets.main.output)
from sourceSets.main.java archiveName = "${baseName}-${version}-deobf.${extension}"
classifier = 'dev' }
task sourcesJar(type: Jar) {
from(sourceSets.main.allSource)
archiveName = "${baseName}-${version}-sources.${extension}"
} }
task apiJar(type: Jar) { task apiJar(type: Jar) {
from sourceSets.main.output from(sourceSets.main.output)
from sourceSets.main.java from(sourceSets.main.java)
classifier = 'api' include("de/ellpeck/actuallyadditions/api/**")
include 'de/ellpeck/actuallyadditions/api/**' archiveName = "${baseName}-${version}-api.${extension}"
} }
javadoc { javadoc {
@ -90,21 +94,36 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc' classifier 'javadoc'
} }
task sourcesJar(type: Jar) { artifacts {
from sourceSets.main.java archives deobfJar
classifier = 'sources' archives sourcesJar
archives apiJar
archives javadocJar
} }
apply plugin: 'maven-publish'
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
artifact jar groupId project.group
artifact apiJar artifactId project.archivesBaseName
artifact javadocJar version project.version
artifact sourcesJar from components.java
artifact deobfJar
artifact deobfJar {
classifier 'deobf'
}
artifact sourcesJar {
classifier 'sources'
}
artifact apiJar {
classifier 'api'
}
pom.withXml {
def node = asNode()
if (node.dependencies.size() > 0)
node.remove(node.dependencies)
}
} }
} }
repositories { repositories {

View file

@ -1,5 +1,7 @@
# 1.12.2-r152 # 1.12.2-r152
* CrankySupertoon: Fixed Crystal Flux Localization * CrankySupertoon: Fixed Crystal Flux Localization
* Falcion: Updated russian translation
* Jammehcow: Fixed a rare NPE with other mods on the worm entity
# 1.12.2-r151 # 1.12.2-r151
* TomyLobo: Improved performance of the item interface. * TomyLobo: Improved performance of the item interface.