-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (55 loc) · 1.99 KB
/
build.gradle
File metadata and controls
68 lines (55 loc) · 1.99 KB
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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.bookmap.layer0.common-conventions'
}
apply plugin: 'java'
// This is optional, tells gradle that we want Java 14 compatible bytecode.
// Can be removed in standalone addons
// TODO: Since Bookmap 7.4 I think we can use Java 17.
sourceCompatibility = JavaVersion.VERSION_14
targetCompatibility = JavaVersion.VERSION_14
def LOWEST_BOOKMAP_VERSION = '7.5.0.16'
def HIGHEST_BOOKMAP_VERSION = '7.7.1.9999'
repositories {
mavenCentral()
maven {
url "https://maven.bookmap.com/maven2/releases/"
}
}
configurations {
fatJarLib
implementation.canBeResolved = true
}
def version = "0.1.5"
def baseName = "${LOWEST_BOOKMAP_VERSION}---${HIGHEST_BOOKMAP_VERSION}---2---python-api---${version}"
dependencies {
configurations.implementation.extendsFrom(configurations.fatJarLib)
// Python syntax highlighting.
// See here which is the latest version:
// https://github.com/bobbylight/RSyntaxTextArea/releases
fatJarLib group: 'com.fifesoft', name: 'rsyntaxtextarea', version: '3.3.2'
// Find and replace toolbars in editor
// https://github.com/bobbylight/RSTAUI/releases
fatJarLib group: 'com.fifesoft', name: 'rstaui', version: '3.3.1'
// https://mvnrepository.com/artifact/org.ow2.asm/asm
fatJarLib group: 'org.ow2.asm', name: 'asm', version: '9.3'
// https://mvnrepository.com/artifact/org.ow2.asm/asm-commons
fatJarLib group: 'org.ow2.asm', name: 'asm-commons', version: '9.3'
implementation group: 'com.bookmap.api', name: 'api-core', version: '7.3.0.26'
implementation group: 'com.bookmap.api', name: 'api-simplified', version: '7.3.0.26'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.4.2'
}
test {
useJUnitPlatform()
}
jar {
archiveFileName = "${baseName}.jar"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.fatJarLib.collect { it.isDirectory() ? it : zipTree(it) }
}
}