-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (78 loc) · 2.3 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
id 'java'
id 'maven-publish'
id 'org.jetbrains.dokka' version '1.8.20'
}
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'
group 'ua.com.radiokot'
version '1.0.0'
publishing {
publications {
maven(MavenPublication) {
artifactId = 'offline-license-key'
pom {
name = 'Offline License Key'
description = 'Issue and verify standalone license keys unlocking paid features, without a license server'
organization {
name = 'Oleg Koretsky'
url = 'https://radiokot.com.ua'
}
licenses {
license {
name = 'GPL-3.0 license'
url = 'https://www.gnu.org/licenses/gpl-3.0-standalone.html'
comments = 'GNU General Public License, Version 3'
distribution = 'repo'
}
}
}
from components.java
}
}
}
wrapper {
gradleVersion = "7.5"
distributionType = Wrapper.DistributionType.BIN
}
repositories {
mavenCentral()
}
dependencies {
// The last 3.X.X version ensures compatibility with Android running Java 7.
implementation('com.auth0:java-jwt:3.19.2') {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
// Jackson 2.13.0 ensures compatibility with Android SDK version 21 and higher.
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
}
test {
useJUnitPlatform()
}
compileKotlin.kotlinOptions.jvmTarget = '1.8'
compileTestKotlin.kotlinOptions.jvmTarget = '1.8'
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility JavaVersion.VERSION_1_8
}
dokkaJavadoc {
moduleName = 'Offline License Key'
outputDirectory = javadoc.destinationDir
dokkaSourceSets {
configureEach {
includes.from('dokka-module.md')
perPackageOption {
matchingRegex.set('java.util.*')
suppress.set(true)
}
}
}
}
javadoc {
// Make it use Dokka output.
dependsOn(dokkaJavadoc)
exclude '*'
}