Add jankins and fix auto config for test env

This commit is contained in:
LLytho 2023-02-01 16:35:48 +01:00
parent 4211838133
commit de0b4d49e2
5 changed files with 35 additions and 2 deletions

View file

@ -10,6 +10,7 @@ val mappingsChannel: String by project
val mappingsVersion: String by project
val modId: String by project
val modName: String by project
val modPackage: String by project
val baseArchiveName = "$modId-common"
@ -62,7 +63,7 @@ buildConfig {
buildConfigField("String", "MOD_ID", "\"${modId}\"")
buildConfigField("String", "MOD_VERSION", "\"${project.version}\"")
buildConfigField("String", "MOD_NAME", "\"${modName}\"")
packageName(project.group as String)
packageName(modPackage)
}
publishing {

View file

@ -92,6 +92,7 @@ dependencies {
}
compileOnly("com.google.auto.service:auto-service:1.0.1")
testCompileOnly("com.google.auto.service:auto-service:1.0.1")
annotationProcessor("com.google.auto.service:auto-service:1.0.1")
}

View file

@ -98,6 +98,7 @@ dependencies {
}
compileOnly("com.google.auto.service:auto-service:1.0.1")
testCompileOnly("com.google.auto.service:auto-service:1.0.1")
annotationProcessor("com.google.auto.service:auto-service:1.0.1")
// JUnit Tests

29
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env groovy
pipeline {
agent any
tools {
jdk "jdk-17.0.1"
}
stages {
stage('Clean') {
steps {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
}
}
stage('Build') {
steps {
echo 'Building'
sh './gradlew build'
}
}
stage('Publish') {
steps {
echo 'Deploying to Maven'
sh './gradlew publish'
}
}
}
}

View file

@ -4,9 +4,10 @@ modName = AlmostUnified
modVersion = 0.3.3
modAuthor = AlmostReliable
modDescription = Unify all resources.
modPackage = com.almostreliable.unified
# Project
group = com.almostreliable.unified
group = com.almostreliable.mods
license = LGPL-3.0
junitVersion = 5.9.0