Skip to content

Commit

Permalink
forgebox and s3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed May 14, 2024
1 parent 2e1797e commit d1cec43
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 55 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup CommandBox
uses: Ortus-Solutions/[email protected]
with:
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
forgeboxAPIKey: ${{ secrets.FORGEBOX_API_TOKEN }}

- name: Setup Java
uses: actions/setup-java@v4
Expand Down Expand Up @@ -118,11 +118,11 @@ jobs:
with:
args: --acl public-read
env:
AWS_S3_BUCKET: "ortus-temp"
AWS_S3_BUCKET: "downloads.ortussolutions.com"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
SOURCE_DIR: "build/distributions"
DEST_DIR: "boxlang-modules/${{ env.MODULE_ID }}/${{ env.VERSION }}"
DEST_DIR: "ortussolutions/boxlang-modules/${{ env.MODULE_ID }}/${{ env.VERSION }}"

# - name: Upload API Docs to S3
# uses: jakejarvis/s3-sync-action@master
Expand All @@ -137,6 +137,10 @@ jobs:

# - name: Publish to Maven Central
# run: |
- name: Publish to ForgeBox
run: |
cd build/module
box forgebox publish --force
- name: Create Github Release
uses: taiki-e/[email protected]
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
"source.organizeImports": "explicit"
}
}

84 changes: 43 additions & 41 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
{
"name":"BoxLang Apache Derby",
"version":"@build.version@[email protected]@",
"location" : "https://downloads.ortussolutions.com/ortussolutions/boxlang-modules/bx-derby/@build.version@/[email protected]@.zip",
"author":"Ortus Solutions",
"homepage":"https://github.com/boxlang-modules/bx-derby",
"documentation":"https://github.com/boxlang-modules/bx-derby",
"repository":{
"type":"git",
"URL":"https://github.com/boxlang-modules/bx-derby"
},
"bugs":"https://github.com/boxlang-modules/bx-derby/issues",
"slug":"bx-derby",
"shortDescription":"Module template for BoxLang modules",
"type":"boxlang-modules",
"keywords":[
"boxlang"
],
"private":false,
"license":[
{
"type":"Apache-2.0",
"URL":"https://www.apache.org/licenses/LICENSE-2.0"
}
],
"devDependencies" :{
"commandbox-cfformat":"*",
"commandbox-docbox":"*",
"commandbox-dotenv":"*",
"commandbox-cfconfig":"*",
"name": "BoxLang Apache Derby",
"version": "@build.version@[email protected]@",
"location": "https://downloads.ortussolutions.com/ortussolutions/boxlang-modules/bx-derby/@build.version@/[email protected]@.zip",
"author": "Ortus Solutions",
"homepage": "https://github.com/boxlang-modules/bx-derby",
"documentation": "https://github.com/boxlang-modules/bx-derby",
"repository": {
"type": "git",
"URL": "https://github.com/boxlang-modules/bx-derby"
},
"bugs": "https://github.com/boxlang-modules/bx-derby/issues",
"slug": "bx-derby",
"shortDescription": "BoxLang module for Apache Derby database connectivity",
"type": "boxlang-modules",
"boxlang": {
"moduleName": "derby"
},
"keywords": ["boxlang"],
"unlisted": true,
"private": false,
"license": [
{
"type": "Apache-2.0",
"URL": "https://www.apache.org/licenses/LICENSE-2.0"
}
],
"devDependencies": {
"commandbox-cfformat": "*",
"commandbox-docbox": "*",
"commandbox-dotenv": "*",
"commandbox-cfconfig": "*",
"testbox": "*"
},
"ignore": [
"**/.*",
"settings.gradle",
"gradlew.bat",
"gradlew",
"build.gradle",
"/src/**",
"gradle/**"
],
"scripts":{
"ignore": [
"**/.*",
"settings.gradle",
"gradlew.bat",
"gradlew",
"build.gradle",
"/src/**",
"gradle/**"
],
"scripts": {
"setupTemplate": "task run taskFile=src/build/SetupTemplate.cfc",
"onRelease":"publish"
}
"onRelease": "publish"
}
}
17 changes: 11 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ 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( 'src/test/resources/libs/boxlang-websupport-1.0.0.jar' )
compileOnly files( 'src/test/resources/libs/boxlang-1.0.0-all.jar' )
implementation 'org.apache.derby:derby:10.16.1.1'
implementation 'org.apache.derby:derby:10.16.1.1'

// Testing Dependencies
testImplementation files( 'src/test/resources/libs/boxlang-1.0.0-all.jar' )
// testImplementation files( 'src/test/resources/libs/boxlang-websupport-1.0.0.jar' )
testImplementation files( 'src/test/resources/libs/boxlang-1.0.0-all.jar' )
testImplementation "org.junit.jupiter:junit-jupiter:5.+"
testImplementation "org.mockito:mockito-core:5.+"
testImplementation "com.google.truth:truth:1.+"
Expand Down Expand Up @@ -185,10 +187,13 @@ task downloadBoxLang( type: Download ) {
doFirst {
file( "src/test/resources/libs" ).mkdirs()
}
// Configure the URL of the file to download
src "https://ortus-temp.s3.amazonaws.com/jericho/libs/boxlang-${boxlangVersion}-all.jar"
// Specify the destination directory for the downloaded file
dest "src/test/resources/libs/boxlang-${boxlangVersion}-all.jar"
// Configure the URLs of the files to download
src([
"https://downloads.ortussolutions.com/ortussolutions/boxlang/${boxlangVersion}/boxlang-${boxlangVersion}-all.jar"//,
// "https://downloads.ortussolutions.com/ortussolutions/boxlang-runtimes/boxlang-web-support/${boxlangVersion}/boxlang-web-support-${boxlangVersion}.jar"
])
// Specify the destination directories for the downloaded files
dest "src/test/resources/libs/"
overwrite true
onlyIfModified false
}
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Gradle Properties
version = 1.0.0
group = com.ortussolutions
boxlangVersion = 1.0.0
jdkVersion = 17
version=1.0.0
group=com.ortussolutions
boxlangVersion=1.0.0
jdkVersion=17

0 comments on commit d1cec43

Please sign in to comment.