-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
126 lines (111 loc) · 4.08 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
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
125
126
import org.gradle.internal.os.OperatingSystem
plugins {
id 'java'
id 'maven-publish'
id 'application'
id 'org.beryx.runtime' version '1.11.2'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo1.maven.org/maven2')
}
maven {
url = uri('https://jcenter.bintray.com/')
}
maven {
url = uri('https://maven.pkg.github.com/tomasz-herman/PseudoAssemblerEmulator')
credentials {
username = "token"
password = "\u0033\u0038\u0038\u0063\u0034\u0034\u0062\u0039\u0037\u0034\u0032\u0035\u0065\u0061\u0036\u0065\u0064\u0066\u0031\u0065\u0030\u0033\u0039\u0032\u0066\u0063\u0064\u0031\u0064\u0065\u0031\u0039\u0036\u0039\u0038\u0064\u0064\u0039\u0039\u0061"
}
}
maven {
url = uri('https://maven.pkg.github.com/tomasz-herman/WindowBuilder')
credentials {
username = "token"
password = "\u0033\u0038\u0038\u0063\u0034\u0034\u0062\u0039\u0037\u0034\u0032\u0035\u0065\u0061\u0036\u0065\u0064\u0066\u0031\u0065\u0030\u0033\u0039\u0032\u0066\u0063\u0064\u0031\u0064\u0065\u0031\u0039\u0036\u0039\u0038\u0064\u0064\u0039\u0039\u0061"
}
}
maven {
url = uri('https://maven.pkg.github.com/tomasz-herman/JTerminal')
credentials {
username = "token"
password = "\u0033\u0038\u0038\u0063\u0034\u0034\u0062\u0039\u0037\u0034\u0032\u0035\u0065\u0061\u0036\u0065\u0064\u0066\u0031\u0065\u0030\u0033\u0039\u0032\u0066\u0063\u0064\u0031\u0064\u0065\u0031\u0039\u0036\u0039\u0038\u0064\u0064\u0039\u0039\u0061"
}
}
}
dependencies {
implementation 'com.fifesoft:rsyntaxtextarea:3.1.1'
implementation 'com.formdev:flatlaf:0.42'
implementation 'com.hermant:pseudo-assembler-emulator:3.1.6'
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'com.fifesoft:autocomplete:3.1.0'
implementation 'com.hermant:windowbuilder:1.0.2'
implementation 'com.hermant:jterminal:0.0.41-alpha'
// implementation 'org.jetbrains.jediterm:jediterm-pty:2.29'
// implementation 'org.jetbrains.pty4j:pty4j:0.8.6'
//
// implementation 'log4j:log4j:1.2.17'
// implementation 'com.google.guava:guava:27.1-jre'
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.0'
}
group = 'com.paide'
version = '1.0.0'
sourceCompatibility = '11'
application {
mainClass = 'com.paide.Main'
}
jar {
manifest {
attributes(
'Main-Class': 'com.paide.Main'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
runtime {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
jpackage {
imageName = "Pseudo-Assembler-IDE"
installerName = "Pseudo-Assembler-IDE"
installerOptions = []
installerType = project.findProperty('installerType')
if (OperatingSystem.current().isWindows()) {
imageOptions += ['--icon', 'src/main/resources/paide.ico']
installerOptions += [
'--win-per-user-install',
'--win-dir-chooser',
'--win-menu',
'--win-shortcut',
'--win-menu-group', 'Pseudo-Assembler',
'--name', 'Pseudo-Assembler IDE',
'--win-upgrade-uuid', '49273554-6ec7-47ef-8619-7b1377551575'
]
}
if (OperatingSystem.current().isMacOsX()) {
imageOptions += ['--icon', 'src/main/resources/paide256.png']
installerOptions += []
}
if (OperatingSystem.current().isLinux()) {
imageOptions += ['--icon', 'src/main/resources/Pseudo-Assembler-IDE.png']
installerOptions += [
'--resource-dir', 'src/main/resources',
'--linux-menu-group', 'Development;',
'--linux-shortcut'
]
}
}
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}