Hello, I am a beginner in Java and wanna ask a question.
So, I have Java Project with this structure :
- project_name
-- build
-- gradle
-- lib
--- *.jar
-- src
--- main
---- java
----- com.company.division
------ common
------- *.java
------ data
------- *.java
------ dofn
------- *.java
------ Main.java
---- resources
----- list.json
How to build the jar that contain /src and /lib ya and with the dependencies but I need it to be clean. The case is when i try to build with /.gradlew clean shadowjar, many things include and openssl and Iampermissionlist.
My dependencies list:
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
implementation 'org.slf4j:slf4j-api:1.7.33'
implementation 'org.slf4j:slf4j-jdk14:1.7.33'
implementation 'org.apache.beam:beam-sdks-java-core:2.34.0'
implementation 'org.apache.beam:beam-runners-google-cloud-dataflow-java:2.34.0'
implementation 'org.apache.beam:beam-sdks-java-io-google-cloud-platform:2.34.0'
implementation 'com.google.cloud:google-cloud-storage:2.3.0'
implementation 'org.reflections:reflections:0.10.2'
runtimeOnly 'org.apache.beam:beam-runners-direct-java:2.34.0'
}
Your answer will help me so much. Thank you.