-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
64 lines (52 loc) · 1.37 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'application'
id 'java-library'
id 'maven-publish'
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.dokka") version "1.4.32"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api 'org.json:json:20210307'
testImplementation 'junit:junit:3.8.1'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
// ==================
// Java Compiler
// ==================
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all" << "-Xlint:-options" << "-Xlint:-processing"
options.encoding = 'UTF-8'
}
compileJava {
options.compilerArgs << "-Werror"
}
// ==================
// Tasks
// ==================
// Run sample app:
// $ gradle run -q
application {
mainClass = 'com.listennotes.podcast_api.Sample'
}
clean {
delete fileTree(dir: 'src/' , include: '**/*.class')
}
jar {
manifest {
attributes("Implementation-Title": POM_NAME,
"Implementation-Version": VERSION_NAME,
"Implementation-Vendor": VENDOR_NAME,
"Bundle-SymbolicName": POM_ARTIFACT_ID,
"Export-Package": "com.listennotes.*")
archiveVersion = VERSION_NAME
}
}
apply from: "${rootDir}/scripts/publish-root.gradle"