Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RAGO - RAG OpenAPI Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RAGO - RAG OpenAPI Framework
Commits
9a0a2cf5
Commit
9a0a2cf5
authored
3 years ago
by
Jueun Park
Browse files
Options
Downloads
Patches
Plain Diff
edited .gitlab-ci.yml and build.gradle
parent
013bd829
No related branches found
No related tags found
1 merge request
!2
Resolve "Create maven package"
Pipeline
#13129
failed
3 years ago
Stage: build
Stage: test
Stage: ragdoc
Stage: publish
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
build.gradle
+33
-30
33 additions, 30 deletions
build.gradle
with
36 additions
and
33 deletions
.gitlab-ci.yml
+
3
−
3
View file @
9a0a2cf5
...
@@ -87,7 +87,7 @@ publish_package:
...
@@ -87,7 +87,7 @@ publish_package:
needs
:
needs
:
-
test
-
test
script
:
script
:
-
"
./gradlew
setDevVersionForCI"
-
"
./gradlew
publish"
-
"
./gradlew
publish"
artifacts
:
only
:
paths
:
-
8-create-maven-package
-
"
build/libs/rago-0.1.0.jar"
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build.gradle
+
33
−
30
View file @
9a0a2cf5
...
@@ -35,31 +35,6 @@ dependencies {
...
@@ -35,31 +35,6 @@ dependencies {
testImplementation
group:
'com.jayway.jsonpath'
,
name:
'json-path'
,
version:
"${json_path_version}"
testImplementation
group:
'com.jayway.jsonpath'
,
name:
'json-path'
,
version:
"${json_path_version}"
}
}
def
versionFile
=
'src/main/resources/version.properties'
def
oldProps
=
new
Properties
()
try
{
file
(
versionFile
).
withInputStream
{
stream
->
oldProps
.
load
(
stream
)
}
version
=
oldProps
[
'version'
]
}
catch
(
e
)
{
// this happens, if either the properties file is not present, or cannot be read from
throw
new
GradleException
(
"File ${versionFile} not found or unreadable. Aborting."
,
e
)
}
task
printVersion
()
{
doLast
{
println
(
version
)
}
}
task
newVersion
()
{
doFirst
{
def
props
=
new
Properties
()
props
[
'version'
]
=
value
props
.
store
(
file
(
versionFile
).
newWriter
(),
null
)
}
}
buildscript
{
buildscript
{
repositories
.
mavenCentral
()
repositories
.
mavenCentral
()
dependencies
{
dependencies
{
...
@@ -185,15 +160,43 @@ jastadd {
...
@@ -185,15 +160,43 @@ jastadd {
}
}
}
}
def
versionFile
=
'src/main/resources/version.properties'
def
oldProps
=
new
Properties
()
try
{
file
(
versionFile
).
withInputStream
{
stream
->
oldProps
.
load
(
stream
)
}
version
=
oldProps
[
'version'
]
}
catch
(
e
)
{
// this happens, if either the properties file is not present, or cannot be read from
throw
new
GradleException
(
"File ${versionFile} not found or unreadable. Aborting."
,
e
)
}
task
printVersion
()
{
doLast
{
println
(
version
)
}
}
task
newVersion
()
{
doFirst
{
def
props
=
new
Properties
()
props
[
'version'
]
=
value
props
.
store
(
file
(
versionFile
).
newWriter
(),
null
)
}
}
task
setDevVersionForCI
()
{
doFirst
{
def
props
=
new
Properties
()
props
[
'version'
]
=
version
+
"-$System.env.CI_PIPELINE_IID"
props
.
store
(
file
(
versionFile
).
newWriter
(),
null
)
}
}
publishing
{
publishing
{
publications
{
publications
{
maven
(
MavenPublication
)
{
maven
(
MavenPublication
)
{
artifactId
=
'test-rago'
from
components
.
java
// from components.java
artifact
(
"build/libs/rago-${version}.jar"
)
{
extension
'jar'
}
}
}
}
}
repositories
{
repositories
{
...
...
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