Skip to content

Commit

Permalink
Merge pull request #20 from denismakogon/jdk21
Browse files Browse the repository at this point in the history
checking java resources during build process
  • Loading branch information
denismakogon authored Oct 11, 2023
2 parents 83f44e8 + 52426e1 commit f4eaf92
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,20 +153,28 @@ jobs:
uses: actions/download-artifact@v3
with:
name: libjudy.so
path: build/src/main/resources
path: build/src/main/resources/lib

- name: libjudy.dylib
uses: actions/download-artifact@v3
with:
name: libjudy.dylib
path: build/src/main/resources
path: build/src/main/resources/lib

- name: Display structure of downloaded files
run: ls -R
working-directory: build/src/main/resources

- name: jar
shell: bash
run: |
cd build
make jar
- name: jar tf
run: jar tf ../target/judy*.jar
working-directory: build/

- name: 'make release'
if: github.event_name == 'push'
uses: marvinpinto/action-automatic-releases@latest
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ add_custom_target(

add_custom_target(
jar
COMMAND mvn -f ${CMAKE_CURRENT_SOURCE_DIR}/pom.xml clean package -Dversion=${JAR_VERSION} -Dsrc.dir=${CMAKE_CURRENT_SOURCE_DIR}/build/src/main/java
COMMAND mvn -f ${CMAKE_CURRENT_SOURCE_DIR}/pom.xml clean package -Dversion=${JAR_VERSION} -Dsrc.dir=${CMAKE_CURRENT_SOURCE_DIR}/build/src
)
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</licenses>

<properties>
<src.dir>build/src/main/java</src.dir>
<src.dir>build/src</src.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
Expand Down Expand Up @@ -52,6 +52,14 @@
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<resources>
<resource>
<directory>${basedir}/${src.dir}/main/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit f4eaf92

Please sign in to comment.