forked from Auburn/FastNoise_Java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
118 lines (100 loc) · 2.4 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
116
117
118
plugins {
id 'maven-publish'
id 'signing'
}
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly group: 'org.jetbrains', name: 'annotations', version: '16.0.2'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
testImplementation group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.33'
testImplementation group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.33'
testAnnotationProcessor group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.33'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
test {
java {
srcDir 'src/test/java'
}
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar, dependsOn: classes) {
duplicatesStrategy 'include'
classifier 'sources'
from sourceSets.main.allSource
}
tasks.withType(Test) {
useJUnitPlatform()
ignoreFailures = false
failFast = false
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
repositories {
maven {
name = 'OSSRH'
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = project.findProperty('ossrh.username') ?: System.getenv('OSSRH_USERNAME')
password = project.findProperty('ossrh.password') ?: System.getenv('OSSRH_PASSWORD')
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = group
artifactId = pom_artifact_id
version = version
pom {
name = pom_name
description = pom_description
url = pom_url
licenses {
license {
name = pom_license_name
url = pom_license_url
}
}
developers {
developer {
id = pom_developer
name = pom_developer_name
email = pom_developer_email
}
}
scm {
connection = pom_scm_connection
developerConnection = pom_scm_developer_connection
url = pom_scm_url
}
}
from components.java
}
}
}
signing {
sign publishing.publications.mavenJava
}