-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
104 lines (90 loc) · 2.85 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.github.lambig'
archivesBaseName = 'Patterns'
version = '1.3.1'
sourceCompatibility = 1.11
repositories {
mavenCentral()
}
dependencies {
implementation 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
implementation group: 'io.github.lambig', name: 'functional-interface-extension', version: '1.1.1'
implementation group: 'io.github.lambig', name: 'Tuplite', version: '1.0.0'
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.6.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.6.2'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.23.1'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
tasks.register('javadocJar', Jar) {
dependsOn classes
archiveClassifier.set('javadoc')
from sourceSets.main.output
}
tasks.register('sourcesJar', Jar) {
dependsOn classes
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
test {
useJUnitPlatform()
test.outputs.upToDateWhen { false }
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'Patterns'
from components.java
pom {
name = 'Patterns'
description = 'easy implementation of pattern-matcher works as a function'
url = 'https://github.com/lambig/Patterns'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'lambig'
name = 'Lambig'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/lambig/Patterns'
url = 'https://github.com/lambig/Patterns'
}
}
}
}
repositories {
// maven {
// name = "OSSRH"
// url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
// credentials {
// username = ossrhUsername
// password = ossrhPassword
// }
// }
}
signing {
sign publishing.publications.mavenJava
}
}