-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (70 loc) · 2.49 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
subprojects {
apply plugin: "java-library"
apply plugin: "maven-publish"
archivesBaseName = project.maven_name
group = project.maven_group
version = project.maven_version
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
maven {
name = "Lenni0451 Snapshots"
url = "https://maven.lenni0451.net/snapshots"
}
maven {
url = "https://zoidberg.ukp.informatik.tu-darmstadt.de/artifactory/public-releases/"
}
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "reposilite"
def releasesUrl = "https://maven.lenni0451.net/releases"
def snapshotsUrl = "https://maven.lenni0451.net/snapshots"
url = project.version.endsWith("SNAPSHOT") ? snapshotsUrl : releasesUrl
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
artifactId = project.archivesBaseName
groupId = project.group
version = project.version
from components.java
pom {
name = artifactId
description = "The ultimate standalone Minecraft protocol library for all platforms and all Minecraft versions"
url = "https://github.com/BetaPackets/BetaPackets"
licenses {
license {
name = "Apache-2.0 license"
url = "https://github.com/BetaPackets/BetaPackets/blob/main/LICENSE"
}
}
developers {
developer {
id = "FlorianMichael"
}
}
scm {
connection = "scm:git:git://github.com/BetaPackets/BetaPackets.git"
developerConnection = "scm:git:ssh://github.com/BetaPackets/BetaPackets.git"
url = "github.com/BetaPackets/BetaPackets"
}
}
}
}
}
}