Skip to content

Commit b11405b

Browse files
Update build.gradle
1 parent 5afa03f commit b11405b

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

META-INF/MANIFEST.MF

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Manifest-Version: 2.0.0
1+
Manifest-Version: 2.0.1
22
Specification-Vendor: INDIForJava
33
Name: org/indilib/i4j
4-
Specification-Title: INDIForJava
5-
Specification-Version: 2.0.0
4+
Specification-Title: INDIForJava-core
5+
Specification-Version: 2.0.1

build.gradle

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ targetCompatibility = 1.8
1515

1616
group 'org.indilib.i4j'
1717
description = 'INDIForJava-core'
18-
version '2.0.0'
18+
version '2.0.1'
1919

2020
dependencies {
2121
api 'org.slf4j:slf4j-api:1.7.30'
@@ -25,14 +25,10 @@ dependencies {
2525

2626
jar {
2727
archivesBaseName = project.name
28-
destinationDirectory = file("build/")
2928
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
3029
manifest {
3130
from 'META-INF/MANIFEST.MF'
3231
}
33-
from {
34-
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
35-
}
3632
}
3733

3834
task sourcesJar(type: Jar, dependsOn: classes) {
@@ -46,6 +42,16 @@ task javadocJar(type: Jar) {
4642
from javadoc
4743
}
4844

45+
task fatJar(type: Jar, dependsOn: classes) {
46+
from sourceSets.main.allSource
47+
classifier "sources"
48+
extension "jar"
49+
destinationDirectory = file("build/")
50+
from {
51+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
52+
}
53+
}
54+
4955
artifacts {
5056
archives javadocJar, sourcesJar
5157
}
@@ -67,8 +73,8 @@ configure(install.repositories.mavenInstaller) {
6773

6874
licenses {
6975
license {
70-
name = 'GNU General Public License'
71-
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
76+
name = 'GNU Lesser General Public License'
77+
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
7278
}
7379
}
7480

0 commit comments

Comments
 (0)