forked from logisim-evolution/logisim-evolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
124 lines (114 loc) · 4.09 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
plugins {
id("com.github.ben-manes.versions") version "0.20.0"
java
application
id("com.github.johnrengelman.shadow") version "4.0.1"
id("edu.sc.seis.macAppBundle") version "2.3.0"
}
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:3.0.8")
implementation("net.sf.nimrod:nimrod-laf:1.2")
implementation("org.drjekyll:colorpicker:1.3")
// implementation("org.drjekyll:fontchooser:2.4")
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_9
targetCompatibility = JavaVersion.VERSION_1_9
}
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")
}
}
macAppBundle {
mainClassName = "com.cburch.logisim.Main"
runtimeConfigurationName = "shadow"
jarTask = "shadowJar"
bundleJRE = false
highResolutionCapable = true
appName = "Logisim-CAD"
appStyle = "universalJavaApplicationStub"
bundleIdentifier = "gcewing.logisimcad"
creatorCode = "LsmC"
icon = "src/main/resources/resources/logisim/img/Logisim-evolution.icns"
// backgroundImage = "src/main/resources/resources/logisim/img/logisim-icon-128.png"
// javaProperties.put("apple.laf.useScreenMenuBar", "true")
bundleExtras.put("CFBundleDisplayName", "Logisim-CAD")
bundleExtras.put(
"CFBundleDocumentTypes",
arrayOf(
mapOf(
"LSItemContentTypes" to arrayOf("gcewing.logisimcad.ccirc"),
"CFBundleTypeName" to "Logisim-CAD circuit file",
"LSHandlerRank" to "Owner",
"CFBundleTypeRole" to "Editor",
"LSIsAppleDefaultForType" to true
),
mapOf(
"LSItemContentTypes" to arrayOf("com.cburch.logisim.circ"),
"CFBundleTypeName" to "Logisim-evolution circuit file",
"LSHandlerRank" to "Alternate",
"CFBundleTypeRole" to "Editor",
"LSIsAppleDefaultForType" to false
)
)
)
bundleExtras.put(
"UTExportedTypeDeclarations",
arrayOf(
mapOf(
"UTTypeIdentifier" to "gcewing.logisimcad.ccirc",
"UTTypeDescription" to "Logisim-CAD circuit file",
"UTTypeConformsTo" to arrayOf("public.data"),
"UTTypeIconFile" to "Logisim-evolution.icns",
"UTTypeTagSpecification" to
mapOf(
"public.filename-extension" to arrayOf("ccirc"),
"public.mime-type" to arrayOf("application-prs.cburch.logisim")
)
)
)
)
bundleExtras.put("LSApplicationCategoryType", "public.app-category.education")
bundleExtras.put("NSHumanReadableCopyright", "Copyright © 2001–2019 Carl Burch, BFH, HEIG-VD, HEPIA, Holy Cross, et al.")
bundleExtras.put("NSSupportsAutomaticGraphicsSwitching", "true")
}
}