mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-27 10:05:47 -05:00
Add jankins and fix auto config for test env
This commit is contained in:
parent
4211838133
commit
de0b4d49e2
5 changed files with 35 additions and 2 deletions
|
@ -10,6 +10,7 @@ val mappingsChannel: String by project
|
||||||
val mappingsVersion: String by project
|
val mappingsVersion: String by project
|
||||||
val modId: String by project
|
val modId: String by project
|
||||||
val modName: String by project
|
val modName: String by project
|
||||||
|
val modPackage: String by project
|
||||||
|
|
||||||
val baseArchiveName = "$modId-common"
|
val baseArchiveName = "$modId-common"
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ buildConfig {
|
||||||
buildConfigField("String", "MOD_ID", "\"${modId}\"")
|
buildConfigField("String", "MOD_ID", "\"${modId}\"")
|
||||||
buildConfigField("String", "MOD_VERSION", "\"${project.version}\"")
|
buildConfigField("String", "MOD_VERSION", "\"${project.version}\"")
|
||||||
buildConfigField("String", "MOD_NAME", "\"${modName}\"")
|
buildConfigField("String", "MOD_NAME", "\"${modName}\"")
|
||||||
packageName(project.group as String)
|
packageName(modPackage)
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|
|
@ -92,6 +92,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOnly("com.google.auto.service:auto-service:1.0.1")
|
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")
|
annotationProcessor("com.google.auto.service:auto-service:1.0.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOnly("com.google.auto.service:auto-service:1.0.1")
|
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")
|
annotationProcessor("com.google.auto.service:auto-service:1.0.1")
|
||||||
|
|
||||||
// JUnit Tests
|
// JUnit Tests
|
||||||
|
|
29
Jenkinsfile
vendored
Normal file
29
Jenkinsfile
vendored
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,9 +4,10 @@ modName = AlmostUnified
|
||||||
modVersion = 0.3.3
|
modVersion = 0.3.3
|
||||||
modAuthor = AlmostReliable
|
modAuthor = AlmostReliable
|
||||||
modDescription = Unify all resources.
|
modDescription = Unify all resources.
|
||||||
|
modPackage = com.almostreliable.unified
|
||||||
|
|
||||||
# Project
|
# Project
|
||||||
group = com.almostreliable.unified
|
group = com.almostreliable.mods
|
||||||
license = LGPL-3.0
|
license = LGPL-3.0
|
||||||
junitVersion = 5.9.0
|
junitVersion = 5.9.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue