forked from DuncanRuns/Julti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (53 loc) · 1.91 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
plugins {
id 'java'
id 'maven-publish'
}
group 'xyz.duncanruns.julti'
version '1.5.0+pre1'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenLocal()
mavenCentral()
maven { url "https://www.jetbrains.com/intellij-repository/releases" }
}
compileJava {
options.compilerArgs << '-parameters'
}
dependencies {
implementation 'net.java.dev.jna:jna:5.14.0'
implementation 'net.java.dev.jna:jna-platform:5.14.0'
implementation 'org.apache.commons:commons-lang3:3.14.0'
implementation 'org.apache.commons:commons-text:1.11.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'commons-io:commons-io:2.16.1'
implementation 'org.apache.logging.log4j:log4j-api:2.23.1'
implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.google.guava:guava:33.2.1-jre'
implementation 'com.github.tuupertunut:powershell-lib-java:2.0.0'
implementation 'com.formdev:flatlaf:3.5'
implementation 'org.kohsuke:github-api:1.322'
implementation 'org.json:json:20231013'
implementation 'com.jetbrains.intellij.java:java-gui-forms-rt:203.7148.30'
implementation 'org.luaj:luaj-jse:3.0.1'
}
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
manifest {
// Thanks to answers from this: https://stackoverflow.com/questions/33020069/how-to-get-version-attribute-from-a-gradle-build-to-be-included-in-runtime-swing
attributes 'Main-Class': 'xyz.duncanruns.julti.JultiAppLaunch',
'Multi-Release': true,
'Implementation-Version': version
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}