-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
67 lines (59 loc) · 1.43 KB
/
settings.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
pluginManagement {
includeBuild 'gradle/plugins/nokeebuild-plugins'
}
rootProject.name = 'nokee-commons'
include 'commons-backports'
include 'commons-hamcrest'
include 'commons-names'
include 'commons-gradle'
includeBuild 'commons-build-script'
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.PREFER_SETTINGS
repositories {
mavenCentral()
}
}
gradle.allprojects {
group = 'dev.nokee.commons'
pluginManager.withPlugin('java-base') {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
ext {
gradleApi = { version -> "dev.gradleplugins:gradle-api:$version" }
}
}
pluginManager.withPlugin('java-library') {
java {
withSourcesJar()
withJavadocJar()
}
tasks.named('javadoc', Javadoc) {
options {
showFromPublic()
links += 'https://docs.gradle.org/current/javadoc/'
classpath += configurations.detachedConfiguration(dependencies.create('dev.gradleplugins:gradle-api:8.11'))
// TODO: Maybe infer windowsTitle based on project name
}
}
}
pluginManager.withPlugin('maven-publish') {
publishing {
repositories {
maven {
name = 'ossrhRelease'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials(PasswordCredentials)
}
}
publications {
pluginManager.withPlugin('java-library') {
java(MavenPublication) {
from(components.java)
}
}
}
}
}
}