-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
47 lines (39 loc) · 1.35 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
plugins {
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
def properties = new Properties()
file('src/main/resources/application.properties').withInputStream { inputStream ->
properties.load(inputStream)
}
group 'com.bookmap.addons'
def version = properties.getProperty('version')
def brApiVersion = properties.getProperty('brapi.version')
repositories {
mavenCentral()
maven {
url "https://maven.bookmap.com/maven2/releases/"
}
maven {
url file('mavenLib')
}
}
dependencies {
compileOnly group: 'com.bookmap.api', name: 'api-core', version: '7.5.0.4'
compileOnly group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
//load Broadcasting API
final def brAPI = "${brApiVersion}"
implementation group: 'com.bookmap.addons', name: 'broadcasting-api', version: brAPI
compileOnly group: 'com.bookmap.addons', name: 'broadcasting-api', version: brAPI, classifier: 'javadoc'
//load BrAPI providers modules
implementation fileTree (dir: "providers/modules", include: "*.jar")
}
jar {
archiveName "Demo-Consumer-${version}.jar"
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE)
into 'resources', {
from 'resources'
}
}