-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (71 loc) · 2.35 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
plugins {
id 'java-library'
id 'maven-publish'
}
rootProject.ext.mavenUserName=""
rootProject.ext.mavenPassword=""
if (file("./build.gradle.local").exists()) {
apply from: "./build.gradle.local"
}
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
allprojects {
group = 'uk.co.notnull'
version = '2.3-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://repo.not-null.co.uk/releases/'
}
maven {
url 'https://papermc.io/repo/repository/maven-public/'
}
maven {
url 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
url 'https://repo.opencollab.dev/main/'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
description = 'Simple plugin for making a decent guess at a Minecraft player\'s platform'
url = 'https://github.com/JLyne/PlatformDetection'
developers {
developer {
id = 'jim'
name = 'James Lyne'
}
}
scm {
connection = 'scm:git:git://github.com/JLyne/PlatformDetection.git'
developerConnection = 'scm:git:ssh://github.com/JLyne/PlatformDetection.git'
url = 'https://github.com/JLyne/PlatformDetection'
}
}
}
}
repositories {
maven {
credentials {
username = rootProject.ext.mavenUserName
password = rootProject.ext.mavenPassword
}
authentication {
basic(BasicAuthentication)
}
def releasesRepoUrl = "https://repo.not-null.co.uk/releases/" // gradle -Prelease publish
def snapshotsRepoUrl = "https://repo.not-null.co.uk/snapshots/"
url = project.hasProperty('release') ? releasesRepoUrl : snapshotsRepoUrl
}
}
}
}