Possible working CI.

This commit is contained in:
Logan Gorence 2021-12-21 09:19:28 +00:00
parent e303f6f937
commit b3f2c9270b
No known key found for this signature in database
GPG Key ID: 9743CEF10935949A
2 changed files with 19 additions and 0 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
image: gradle:7.3-jdk11
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
build:
stage: build
script: gradle --build-cache shadowJar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
artifacts:
paths:
- **/build/libs/*.jar

View File

@ -40,6 +40,8 @@ subprojects {
targetCompatibility = javaVersion
}
tasks["jar"].enabled = false
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)