@@ -3,7 +3,6 @@ plugins {
33 id ' java'
44 id " org.openjfx.javafxplugin" version " 0.1.0"
55 id ' com.diffplug.spotless' version ' 7.0.2'
6- // id("com.github.johnrengelman.shadow") version "8.1.1"
76}
87
98repositories {
@@ -13,7 +12,6 @@ repositories {
1312dependencies {
1413 implementation group : ' org.controlsfx' , name : ' controlsfx' , version : ' 11.2.2'
1514 implementation group : ' net.sf.jasperreports' , name : ' jasperreports' , version : ' 6.1.0'
16- // implementation group: 'com.jfoenix', name: 'jfoenix', version: '9.0.10'
1715 implementation group : ' org.xerial' , name : ' sqlite-jdbc' , version : ' 3.34.0'
1816 implementation group : ' org.olap4j' , name : ' olap4j' , version : ' 1.2.0'
1917 implementation group : ' com.lowagie' , name : ' itext' , version : ' 2.1.7'
@@ -35,17 +33,6 @@ javafx {
3533 modules = [ ' javafx.controls' , ' javafx.fxml' , ' javafx.graphics' , ' javafx.base' ]
3634}
3735
38- // sourceSets {
39- // main {
40- // java {
41- // srcDirs = ['src']
42- // }
43- // resources {
44- // srcDirs = ['src']
45- // }
46- // }
47- // }
48-
4936spotless {
5037 java {
5138 lineEndings ' WINDOWS'
7764 " Class-Path" : configurations. runtimeClasspath. collect { " lib/" + it. getName() }. join(' ' )
7865 )
7966 }
80- /*
81- this part is commented because it is unnecessarily creating the fat jar though the actual dependencies are using from the lib directory.
82- In future, I'll try to create a fat jar without the lib directory.
83- */
84-
85- // from {
86- // configurations.compile.collect { it.isDirectory() ? zipTree(it) : it }
87- // configurations.runtimeClasspath.collect { it.isDirectory() ? zipTree(it) : it }
88- // }
8967}
9068
9169def dependencyDirectory = layout. buildDirectory. dir(" libs/lib" )
@@ -123,49 +101,3 @@ tasks.named('jar') {
123101 tasks. named(' copyRuntimeDeps' )
124102 )
125103}
126-
127- // def dependency_directory = "${buildDir}/libs/lib/"
128- //
129- // tasks.register('copyRuntimeDeps', Copy) {
130- // from configurations.runtimeClasspath
131- // into "${dependency_directory}"
132- // }
133- //
134- // tasks.register('copyDeps', Copy) {
135- // dependsOn tasks.copyRuntimeDeps
136- // from configurations.compile
137- // into "${dependency_directory}"
138- // }
139- //
140- // jar.finalizedBy(copyDeps)
141-
142-
143- // tasks.register('fatJar', Jar) {
144- // manifest {
145- // attributes 'Main-Class': mainClassName
146- // }
147- //
148- // duplicatesStrategy = DuplicatesStrategy.EXCLUDE
149- //
150- // from {
151- // configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
152- // }
153- //
154- // with jar
155- // }
156-
157- // tasks {
158- // shadowJar {
159- // archiveBaseName.set("SatyamConsignment")
160- // archiveClassifier.set("")
161- // archiveVersion.set("")
162- // mergeServiceFiles()
163- // manifest {
164- // attributes["Main-Class"] = application.mainClass.get()
165- // }
166- // }
167- //
168- // build {
169- // dependsOn(shadowJar)
170- // }
171- // }
0 commit comments