-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (68 loc) · 2.08 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
73
74
75
76
77
78
79
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.vanniktech.maven.publish' version '0.29.0'
}
group = 'eu.koboo'
version = '1.0.1'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'org.jsoup:jsoup:1.17.2'
implementation 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
options.fork = true
options.encoding = 'UTF-8'
options.release.set(11)
}
tasks.register('sourcesJar', Jar) {
from sourceSets.main.allJava
archiveClassifier.set('sources')
}
tasks.register('javadocJar', Jar) {
from javadoc.destinationDir
archiveClassifier.set('javadoc')
}
artifacts {
archives shadowJar
archives sourcesJar
archives javadocJar
}
mavenPublishing {
coordinates(project.group.toString(), "${project.name}", project.version.toString())
pom {
name = 'fritzbox-rest-api'
description = 'REST api for your fritzbox'
inceptionYear = '2022'
url = 'https://github.com/Koboo/fritzbox-rest-api'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'koboo'
name = 'Koboo'
email = 'admin@koboo.eu'
url = 'https://github.com/Koboo/'
}
}
scm {
url = 'https://github.com/Koboo/fritzbox-rest-api'
connection = 'scm:git:https://github.com/Koboo/fritzbox-rest-api'
developerConnection = 'scm:git:https://github.com/Koboo/fritzbox-rest-api'
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}