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

cleanup build and allow publish also on dev.

parent 3886c0f7
No related branches found
No related tags found
3 merge requests!39Version 1.1.0,!35Version 1.0.0,!17Version 0.3.2
Pipeline #10956 failed
......@@ -52,6 +52,7 @@ publish:
script:
- "./gradlew publish"
only:
- dev
- master
ragdoc_build:
......@@ -81,6 +82,9 @@ ragdoc_view:
- OUTPUT_DIR=$(pwd -P)/pages/docs/ragdoc
- cd /ragdoc-view/src/ && rm -rf data && ln -s $DATA_DIR
- /ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
only:
- dev
- master
artifacts:
paths:
- "pages/docs/ragdoc"
......
......@@ -34,11 +34,11 @@ dependencies {
}
def versionFile = 'src/main/resources/ragConnectVersion.properties'
def oldProps = new Properties()
def props = new Properties()
try {
file(versionFile).withInputStream { stream -> oldProps.load(stream) }
version = oldProps['version']
file(versionFile).withInputStream { stream -> props.load(stream) }
version = props['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)
......@@ -52,9 +52,9 @@ task printVersion() {
task newVersion() {
doFirst {
def props = new Properties()
props['version'] = value
props.store(file(versionFile).newWriter(), null)
def newProps = new Properties()
newProps['version'] = value
newProps.store(file(versionFile).newWriter(), null)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment