-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
40 lines (34 loc) · 1.57 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
dependencies {
implementation project(":org.librarysimplified.audiobook.http")
implementation project(":org.librarysimplified.audiobook.json_canon")
implementation project(":org.librarysimplified.audiobook.json_web_token")
implementation project(":org.librarysimplified.audiobook.lcp.license_status")
implementation project(":org.librarysimplified.audiobook.license_check.spi")
implementation project(":org.librarysimplified.audiobook.manifest_parser.extension_spi")
implementation project(":org.librarysimplified.audiobook.manifest_parser.webpub")
implementation libs.irradia.fieldrush.api
implementation libs.irradia.fieldrush.vanilla
implementation libs.kotlin.stdlib
implementation libs.kotlin.reflect
implementation libs.nimbus.jose.jwt
implementation libs.okhttp3
implementation libs.slf4j
}
/*
* Generate a properties file based on various settings.
*/
task generatePropertiesResources {
def directory = new File(project.projectDir, "src/main/resources/org/librarysimplified/audiobook/feedbooks").absoluteFile
directory.mkdirs()
def file = new File(directory, "provider.properties")
file.createNewFile()
def properties = new Properties()
def major = version.split("\\.").getAt(0)
def minor = version.split("\\.").getAt(1)
def patch = version.split("\\.").getAt(2)
properties.setProperty("version.major", major)
properties.setProperty("version.minor", minor)
properties.setProperty("version.patch", patch)
properties.store(new FileOutputStream(file), "Automatically generated - DO NOT EDIT")
}
preBuild.dependsOn generatePropertiesResources