Skip to content

Commit

Permalink
- Updated build libraries
Browse files Browse the repository at this point in the history
- Upgraded internal libraries for build
  • Loading branch information
lmajano authored Aug 26, 2024
1 parent d9c4290 commit bc12e63
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 42 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
default: false
type: boolean

# Manual Trigger
workflow_dispatch:

env:
MODULE_ID: ${{ github.event.repository.name }}
JDK: 21
Expand Down Expand Up @@ -61,9 +64,16 @@ jobs:
id: current_version
run: |
# Read Version from gradle.properties
echo "VERSION=`grep '^version=' gradle.properties | cut -d'=' -f2`" >> $GITHUB_ENV
TMPVERSION=$(grep '^version=' gradle.properties | cut -d'=' -f2)
# Replace existing prerelease identifier with -snapshot or append -snapshot if none exists
# If we are on the development branch, we always append -snapshot
if [[ "${{ github.ref }}" == "refs/heads/development" ]]; then
TMPVERSION=$(echo $TMPVERSION | sed 's/-.*$//')-snapshot
fi
# Set the version in the environment
echo "VERSION=$TMPVERSION" >> $GITHUB_ENV
# Branche
# Branch
echo "Github Ref is $GITHUB_REF"
echo "BRANCH=main" >> $GITHUB_ENV
Expand Down Expand Up @@ -200,12 +210,7 @@ jobs:
- name: Bump Version
run: |
if [ $LTS == 'true' ]
then
gradle bumpPatchVersion --stacktrace --console=plain
else
gradle bumpMinorVersion --stacktrace --console=plain
fi
gradle bumpMinorVersion --stacktrace --console=plain
git pull
- name: Commit Version Bump
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ ext {
buildID = System.getenv( 'BUILD_ID' ) ?: '0'
branch = System.getenv( 'BRANCH' ) ?: 'development'
}
if ( branch == 'development' ) {
// If the branch is 'development', ensure the version ends with '-snapshot'
// This replaces any existing prerelease identifier with '-snapshot'
version = version.contains('-') ? version.replaceAll(/-.*/, '-snapshot') : "${version}-snapshot"
boxlangVersion = boxlangVersion.contains('-') ? boxlangVersion.replaceAll(/-.*/, '-snapshot') : "${boxlangVersion}-snapshot"
}

repositories {
mavenLocal()
Expand All @@ -32,10 +38,12 @@ dependencies {
// Until BoxLang is published to Maven Central
// Look for it in the local build directory
// You must run `./gradle build -x test` in the BoxLang project
compileOnly files( '../../boxlang/build/distributions/boxlang-' + boxlangVersion + '-all.jar' )
compileOnly files( 'src/test/resources/libs/boxlang-' + boxlangVersion + '-all.jar' )
implementation 'org.python:jython-slim:2.7.4'

// Testing Dependencies
testImplementation files( '../../boxlang/build/distributions/boxlang-' + boxlangVersion + '-all.jar' )
testImplementation files( 'src/test/resources/libs/boxlang-' + boxlangVersion + '-all.jar' )
testImplementation "org.junit.jupiter:junit-jupiter:5.+"
testImplementation "org.mockito:mockito-core:5.+"
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Updated build libraries
- Upgraded internal libraries for build
- Upgraded Jython to 2.7.4

## [1.0.0] - 2024-06-17

- Support eval and bindings
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Mon Jun 17 21:47:29 UTC 2024
boxlangVersion=1.0.0-beta2
boxlangVersion=1.0.0-snapshot
jdkVersion=21
version=1.1.0
group=com.ortussolutions
33 changes: 0 additions & 33 deletions grapher/data/lastAST.json

This file was deleted.

0 comments on commit bc12e63

Please sign in to comment.