Skip to content
Snippets Groups Projects
Commit e8d381bb authored by René Schöne's avatar René Schöne
Browse files

publish jar

parent 3173d80d
Branches
No related tags found
No related merge requests found
Pipeline #10721 failed
stages:
- build
- publish
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
image: openjdk:8
stage: build
script:
- ./gradlew --console=plain --no-daemon assemble jar
artifacts:
paths:
- "jastadd2.jar"
expire_in: 1 week
publish:
image: openjdk:8
stage: publish
needs:
- test
script:
- "./gradlew publish"
only:
- dev
- master
......@@ -2,6 +2,8 @@ apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'maven-publish'
defaultTasks 'jar'
......@@ -406,3 +408,36 @@ if (project.hasProperty('ossrhUsername')) {
}
}
}
version = fullVersion + "-dresden"
//187
publishing {
publications {
maven(MavenPublication) {
// artifactId = 'ragconnect'
artifact("jastadd2.jar") {
extension 'jar'
}
}
}
repositories {
maven {
url "https://git-st.inf.tu-dresden.de/api/v4/projects/187/packages/maven"
// Uncomment the following lines to publish manually (and comment out the other credentials section)
// credentials(HttpHeaderCredentials) {
// name = "Private-Token"
// value = gitLabPrivateToken // the variable resides in ~/.gradle/gradle.properties
// }
credentials(HttpHeaderCredentials) {
name = 'Job-Token'
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
publish.dependsOn jar
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment