forked from laxika/java-warc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (97 loc) · 3.34 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
buildscript {
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath('com.github.ben-manes:gradle-versions-plugin:0.29.0')
}
}
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'java-library'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
compileJava.dependsOn(processResources)
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
inceptionYear = '2019'
name = project.name
packaging = 'jar'
description = project.description
url = 'https://github.com/bottomless-archive-project/java-warc.git'
scm {
connection = '[email protected]:bottomless-archive-project/java-warc.git'
developerConnection = '[email protected]:bottomless-archive-project/java-warc.git'
url = 'https://github.com/bottomless-archive-project/java-warc.git'
}
licenses {
license {
name = 'Apache License 2.0'
url = 'https://opensource.org/licenses/Apache-2.0'
}
}
developers {
developer {
id = 'gyulalakatos'
name = 'Gyula Lakatos'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
allowInsecureProtocol = true
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
apply plugin: 'signing'
signing {
sign publishing.publications.mavenJava
}
artifacts {
archives javadocJar, sourcesJar
}
dependencies {
implementation group: 'org.jetbrains', name: 'annotations', version: '22.0.0'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
testCompileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.32'
}
apply plugin: 'com.github.ben-manes.versions'
}