Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
JastAdd
RagConnect
Commits
3d2a2911
Commit
3d2a2911
authored
Jan 14, 2021
by
René Schöne
Browse files
Activate publishing using CI.
parent
b570122a
Pipeline
#8591
passed with stages
in 2 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
3d2a2911
...
...
@@ -6,3 +6,4 @@
.idea/
.gradle/
build/
/gradle.properties
.gitlab-ci.yml
View file @
3d2a2911
...
...
@@ -3,6 +3,7 @@ variables:
stages
:
-
build
-
publish
-
deploy
before_script
:
...
...
@@ -14,7 +15,7 @@ cache:
-
.gradle/caches
build
:
image
:
openjdk:
8
image
:
openjdk:
11
stage
:
build
script
:
-
./gradlew --console=plain --no-daemon assemble jar
...
...
@@ -22,6 +23,14 @@ build:
paths
:
-
"
/builds/jastadd/ragconnect/build/libs/ragconnect-*.jar"
publish
:
image
:
openjdk:11
stage
:
publish
script
:
-
"
./gradlew
publish"
# only:
# - master
pages
:
image
:
python:3.7-alpine
stage
:
deploy
...
...
ragconnect.base/build.gradle
View file @
3d2a2911
...
...
@@ -2,6 +2,7 @@ apply plugin: 'java-library'
apply
plugin:
'idea'
apply
plugin:
'jastadd'
apply
plugin:
'application'
apply
plugin:
'maven-publish'
group
=
'de.tudresden.inf.st'
...
...
@@ -178,3 +179,44 @@ jastadd {
}
generateAst
.
dependsOn
relast
//708
publishing
{
publications
{
maven
(
MavenPublication
)
{
artifactId
=
'ragconnect'
from
components
.
java
// artifact("build/libs/ragconnect-${version}.jar") {
// extension 'jar'
// }
}
}
repositories
{
// maven {
// name 'nexus'
// url "http://172.22.1.152:8081/repository/" + (project.hasProperty('asSnapshot') ? "maven-snapshots" : "maven-releases/")
// credentials {
// username project.ext.properties.repoUser
// password project.ext.properties.repoPassword
// }
// }
maven
{
url
"https://git-st.inf.tu-dresden.de/api/v4/projects/708/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment