diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index c4e93dc3..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,60 +0,0 @@ -@Library('forge-shared-library')_ - -pipeline { - options { - disableConcurrentBuilds() - } - agent { - docker { - image 'gradle:7-jdk16' - } - } - environment { - GRADLE_ARGS = '-Dorg.gradle.daemon.idletimeout=5000' - } - stages { - stage('fetch') { - steps { - checkout scm - } - } - stage('setup') { - steps { - withGradle { - sh './gradlew ${GRADLE_ARGS} --refresh-dependencies' - } - script { - env.MYVERSION = sh(returnStdout: true, script: './gradlew :properties -q | grep "^version:" | awk \'{print $2}\'').trim() - } - } - } - stage('changelog') { - when { - not { - changeRequest() - } - } - steps { - writeChangelog(currentBuild, "build/ToughAsNails-${env.MYVERSION}-changelog.txt") - } - } - stage('publish') { - when { - not { - changeRequest() - } - } - environment { - CURSE_API_KEY = credentials('curse-api-key') - } - steps { - withCredentials([usernamePassword(credentialsId: 'maven-adubbz-user', usernameVariable: 'MAVEN_USER', passwordVariable: 'MAVEN_PASSWORD')]) { - sh './gradlew ${GRADLE_ARGS} publish' - } - withGradle { - sh './gradlew ${GRADLE_ARGS} curseforge -PcurseApiKey=${CURSE_API_KEY}' - } - } - } - } -} \ No newline at end of file diff --git a/build.gradle b/build.gradle index eb8bd639..919aff52 100644 --- a/build.gradle +++ b/build.gradle @@ -105,6 +105,23 @@ dependencies { annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' } +jar { + manifest { + attributes([ + 'Specification-Title' : mod_name, + 'Specification-Vendor' : mod_author, + 'Specification-Version' : mod_version, + 'Implementation-Title' : project.name, + 'Implementation-Version' : mod_version, + 'Implementation-Vendor' : mod_author, + 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), + 'Timestamp' : System.currentTimeMillis(), + 'Built-On-Java' : "${System.getProperty('java.vm.version')} (${System.getProperty('java.vm.vendor')})", + 'Build-On-Minecraft' : minecraft_version + ]) + } +} + mixin { add sourceSets.main, "${mod_id}.refmap.json" config "${mod_id}.mixins.json"