Skip to content
Snippets Groups Projects
Commit 84be1b85 authored by Jueun Park's avatar Jueun Park
Browse files

edited build.gradle and settings.gradle

parent ae9bb233
No related branches found
No related tags found
1 merge request!2Resolve "Create maven package"
Pipeline #13119 passed
......@@ -5,6 +5,7 @@ apply plugin: 'java'
apply plugin: 'jastadd'
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'maven-publish'
mainClassName = 'de.tudresden.inf.st.openapi'
......@@ -161,3 +162,33 @@ jastadd {
delete "src/gen-res"
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId = 'test-rago'
// from components.java
artifact("build/libs/rago-${version}.jar") {
extension 'jar'
}
}
}
repositories {
maven {
url "https://git-st.inf.tu-dresden.de/api/v4/projects/$System.env.CI_PROJECT_ID/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)
}
}
}
}
rootProject.name = 'jastadd-openapi'
rootProject.name = 'jastadd-rago'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment