Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relast-preprocessor
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
relast-preprocessor
Commits
15f038be
Commit
15f038be
authored
3 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
update version management, reset to version 0.1.0
parent
369fa978
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.gradle
+28
-9
28 additions, 9 deletions
build.gradle
src/main/resources/RelASTPreprocessorVersion.properties
+1
-0
1 addition, 0 deletions
src/main/resources/RelASTPreprocessorVersion.properties
src/main/resources/preprocessor.properties
+0
-1
0 additions, 1 deletion
src/main/resources/preprocessor.properties
with
29 additions
and
10 deletions
build.gradle
+
28
−
9
View file @
15f038be
...
...
@@ -47,15 +47,37 @@ sourceSets {
File
genSrc
=
file
(
"src/gen/java"
)
idea
.
module
.
generatedSourceDirs
+=
genSrc
def
versionFile
=
'src/main/resources/
p
reprocessor.properties'
def
version
Props
=
new
Properties
()
def
versionFile
=
'src/main/resources/
RelASTP
reprocessor
Version
.properties'
def
old
Props
=
new
Properties
()
try
{
file
(
versionFile
).
withInputStream
{
stream
->
version
Props
.
load
(
stream
)
}
version
=
version
Props
[
'version'
]
}
catch
(
e
)
{
file
(
versionFile
).
withInputStream
{
stream
->
old
Props
.
load
(
stream
)
}
version
=
old
Props
[
'version'
]
}
catch
(
ignored
)
{
// 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
)
throw
new
GradleException
(
"File ${versionFile} not found or unreadable. Aborting."
)
}
task
newVersion
()
{
doFirst
{
def
props
=
new
Properties
()
props
[
'version'
]
=
value
props
.
store
(
file
(
versionFile
).
newWriter
(),
null
)
}
}
task
printVersion
()
{
doLast
{
println
(
version
)
}
}
task
setDevVersionForCI
()
{
doFirst
{
def
props
=
new
Properties
()
props
[
'version'
]
=
version
+
"-$System.env.CI_PIPELINE_IID"
props
.
store
(
file
(
versionFile
).
newWriter
(),
null
)
}
}
dependencies
{
...
...
@@ -70,9 +92,6 @@ dependencies {
implementation
group:
'com.github.jknack'
,
name:
'handlebars'
,
version:
'4.3.0'
implementation
group:
'org.yaml'
,
name:
'snakeyaml'
,
version:
'1.27'
// test
// testRuntimeClasspath files(modelJar.archiveFile.get())
// test fixtures
testFixturesApi
group:
'org.slf4j'
,
name:
'slf4j-jdk14'
,
version:
'1.7.30'
testFixturesApi
group:
'org.junit.jupiter'
,
name:
'junit-jupiter-engine'
,
version:
'5.7.0'
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/RelASTPreprocessorVersion.properties
0 → 100644
+
1
−
0
View file @
15f038be
version
=
0.1.0
This diff is collapsed.
Click to expand it.
src/main/resources/preprocessor.properties
deleted
100644 → 0
+
0
−
1
View file @
369fa978
version
=
1.0.0-pre-release
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