Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RagConnect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RagConnect
Commits
3d2a2911
Commit
3d2a2911
authored
4 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
Activate publishing using CI.
parent
b570122a
No related branches found
No related tags found
No related merge requests found
Pipeline
#8591
passed
4 years ago
Stage: build
Stage: publish
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yml
ragconnect.base/build.gradle
+42
-0
42 additions, 0 deletions
ragconnect.base/build.gradle
with
53 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
3d2a2911
...
...
@@ -6,3 +6,4 @@
.idea/
.gradle/
build/
/gradle.properties
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
10
−
1
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
...
...
This diff is collapsed.
Click to expand it.
ragconnect.base/build.gradle
+
42
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment