forked from logisim-evolution/logisim-evolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (56 loc) · 1.46 KB
/
build.gradle.kts
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
plugins {
java
application
id("com.github.johnrengelman.shadow") version "4.0.1"
}
repositories {
jcenter()
mavenCentral()
}
application {
mainClassName = "com.cburch.logisim.Main"
}
dependencies {
implementation(fileTree("lib") {
include("**/*.jar")
})
implementation("org.hamcrest:hamcrest-core:1.3")
implementation("javax.help:javahelp:2.0.05")
// implementation("com.fifesoft:rsyntaxtextarea:2.6.1") // Currently using 3.0.0-SNAPSHOT
implementation("org.slf4j:slf4j-api:1.7.8")
implementation("org.slf4j:slf4j-simple:1.7.8")
testImplementation("ch.qos.logback:logback-classic:1.1.2")
testImplementation("ch.qos.logback:logback-core:1.1.2")
testImplementation("junit:junit:4.12")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
task<Jar>("sourcesJar") {
group = "build"
description = "Creates a source jar archive."
dependsOn.add("classes")
classifier = "src"
from(sourceSets.main.get().allSource)
}
tasks {
jar {
manifest {
attributes.putAll(mapOf(
"Implementation-Title" to name,
"Implementation-Version" to version
))
}
from(".") {
include("LICENSE")
include("README.md")
}
}
shadowJar {
from(".") {
include("LICENSE")
include("README.md")
}
}
}