Skip to content

Commit 663474c

Browse files
committed
gradle build now building fat jar
1 parent 6e2a299 commit 663474c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

build.gradle

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,26 @@ sourceCompatibility = '1.7'
55
targetCompatibility = '1.7'
66
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
77

8+
Properties props = new Properties()
9+
props.load(new FileInputStream("javasdk/NRSDK/src/com/neuronrobotics/sdk/config/build.properties"))
10+
811
manifest {
9-
attributes 'Implementation-Title': componentTitle
12+
attributes(
13+
//"Main-Class": "com.dcx.epep.Start",
14+
"Manifest-Version": "1.0",
15+
"Created-By": "Neuron Robotics Cooperative",
16+
"Specification-Title": props."app.name",
17+
"Specification-Version": props."app.version",
18+
"Specification-Vendor": "Neuron Robotics Cooperative",,
19+
"Implementation-Title": props."app.name",
20+
"Implementation-Version" : props."app.version",
21+
"Implementation-Vendor": "Neuron Robotics Cooperative"
22+
23+
)
1024
}
1125

26+
jar.archiveName = "nrsdk-"+props."app.version"+"-jar-with-dependencies.jar"
27+
1228
//apply from: 'http://gradle-plugins.mihosoft.eu/latest/vlicenseheader.gradle'
1329
//repairHeaders.licenseHeaderText = new File(projectDir,'./license-template.txt')
1430

0 commit comments

Comments
 (0)