-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (37 loc) · 1.11 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'info.picocli:picocli:4.6.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
version = '2.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
tasks.register('fatJar', Jar) {
manifest {
attributes 'Main-Class': 'net.darmo_creations.ti83_compiler.Main'
}
archiveClassifier = 'fat'
from sourceSets.main.output
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
}
tasks.register('createZip', Zip) {
dependsOn jar
dependsOn fatJar
archiveFileName = "TI-83_Compiler-${version}.zip"
destinationDirectory = layout.buildDirectory.dir('libs')
from layout.projectDirectory
include 'LICENSE'
from layout.buildDirectory.dir('libs')
include "TI-83_Compiler-${version}-fat.jar"
}