Skip to content

Commit 0a83847

Browse files
authored
Merge pull request #5 from Boehringer-Ingelheim/revert-4-master
Revert "Integrate GraalVM for Native Image Compilation"
2 parents 1617d0e + 95db008 commit 0a83847

6 files changed

Lines changed: 17 additions & 33 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ jobs:
6060
with:
6161
distribution: 'adopt'
6262
java-version: '17'
63-
- name: Setup GraalVM
64-
uses: graalvm/setup-graalvm@v1
65-
with:
66-
graalvm-version: '22.1.0'
67-
java-version: '17'
6863
- name: Grant execute permission for gradlew
6964
run: cd client && chmod +x gradlew
7065
- name: Build
@@ -73,27 +68,25 @@ jobs:
7368
run: cd client && ./gradlew test
7469
- name: Package
7570
run: cd client && ./gradlew bootJar
76-
- name: Build Native Image
71+
- name: Build toscactl-linux-amd64
7772
run: cd client && make build_linux VERSION=${{ needs.precheck.outputs.version }} COMMIT=$(git rev-parse HEAD)
7873
- name: List build directory
7974
run: |
8075
ls -la client/build/
8176
ls -la client/build/libs/
82-
ls -la client/build/native/nativeCompile/
83-
- name: Archive files
77+
- name: Archive JAR
8478
uses: actions/upload-artifact@v4
8579
with:
8680
name: app-${{ needs.precheck.outputs.full_version }}
8781
path: |
88-
client/build/*.jar
8982
client/build/libs/*.jar
90-
client/build/native/nativeCompile/toscactl-linux-amd64
83+
client/build/*.jar
9184
- name: Release Asset Upload
9285
uses: svenstaro/upload-release-action@v2
9386
if: github.event_name == 'release' || github.event_name == 'prerelease'
9487
with:
9588
repo_token: ${{ secrets.GITHUB_TOKEN }}
96-
file: client/build/native/nativeCompile/toscactl-linux-amd64
89+
file: client/build/*.jar
9790
tag: ${{ needs.precheck.outputs.branchTag }}
9891
overwrite: true
9992
file_glob: true

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ build_jar: build_prepare
1414
./gradlew build
1515

1616
build_linux: build_prepare
17-
cd $(ROOT_DIR) && ./gradlew nativeBuild
18-
cp $(ROOT_DIR)/build/native/nativeCompile/toscactl-linux-amd64 $(BUILD_DIR)/toscactl-linux-amd64
17+
cd $(ROOT_DIR) && ./gradlew bootJar
18+
cp $(ROOT_DIR)/build/libs/*.jar $(BUILD_DIR)/toscactl-linux-amd64.jar
1919

2020
test:
2121
cd $(ROOT_DIR)

client/build.gradle

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ buildscript {
77
plugins {
88
id 'jacoco'
99
id 'maven-publish'
10-
id 'java'
11-
id 'org.springframework.boot' version '2.7.6'
12-
id 'io.spring.dependency-management' version '1.0.13.RELEASE'
13-
id 'org.graalvm.buildtools.native' version '0.9.28'
10+
id 'java'
11+
id 'org.springframework.boot' version '2.7.1'
12+
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
1413
}
1514

1615
group = 'edptoscaqs'
@@ -24,14 +23,14 @@ repositories {
2423
ext['log4j2.version'] = '2.17.0'
2524

2625
ext {
27-
set('snippetsDir', file("build/generated-snippets"))
26+
set('snippetsDir', file("build/generated-snippets"))
2827
}
2928

3029
dependencies {
31-
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
32-
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
33-
implementation 'org.springframework.boot:spring-boot-starter-security'
34-
implementation 'org.springframework.boot:spring-boot-starter-web'
30+
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
31+
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
32+
implementation 'org.springframework.boot:spring-boot-starter-security'
33+
implementation 'org.springframework.boot:spring-boot-starter-web'
3534
implementation 'javax.validation:validation-api:2.0.1.Final'
3635
implementation 'org.apache.commons:commons-text:1.10.0'
3736
implementation 'org.hibernate.validator:hibernate-validator:7.0.1.Final'
@@ -42,10 +41,12 @@ dependencies {
4241
runtimeOnly 'com.h2database:h2'
4342
testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
4443
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
44+
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
4545
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.24.2'
4646
testImplementation 'org.springframework.security:spring-security-test'
4747
}
4848

49+
4950
bootJar {
5051
archiveFileName = "app.jar"
5152
destinationDirectory = file("$buildDir/../docker")
@@ -66,13 +67,4 @@ publishing {
6667
from components.java
6768
}
6869
}
69-
}
70-
71-
graalvmNative {
72-
binaries {
73-
main {
74-
imageName = 'toscactl-linux-amd64'
75-
mainClass = 'com.edptoscaqs.toscaservice.ToscaCLI'
76-
}
77-
}
7870
}
-1.19 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)