This repository has been archived by the owner on May 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
124 lines (105 loc) · 3.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
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
119
120
121
122
123
124
allprojects {
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "signing"
base {
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
group = project.maven_group ?: rootProject.maven_group
archivesName = project.maven_name ?: rootProject.maven_name
version = project.maven_version ?: rootProject.maven_version
}
repositories {
mavenCentral()
}
java {
withSourcesJar()
withJavadocJar()
}
javadoc {
options.tags(
"apiNote:a:API Note:",
"implSpec:a:Implementation Requirements:",
"implNote:a:Implementation Note:",
)
}
jar {
from("LICENSE") {
rename { "${it}_${project.name ?: rootProject.name}" }
}
}
artifacts {
archives javadocJar, sourcesJar
}
publishing {
repositories {
maven {
name = "reposilite"
url = "https://maven.lenni0451.net/" (project.maven_version.endsWith("SNAPSHOT") ? "snapshots" : "releases")
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
}
signing {
setRequired(false)
sign configurations.archives
}
}
configure(allprojects.findAll { it.name != "gradle-plugin" }) {
publishing {
repositories {
maven {
name = "ossrh"
url = "https://s01.oss.sonatype.org/" (project.maven_version.endsWith("SNAPSHOT") ? "content/repositories/snapshots/" : "service/local/staging/deploy/maven2/")
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
groupId = project.maven_group
artifactId = project.maven_name
version = project.maven_version
from components.java
pom {
name = "JavaDowngrader"
description = "Standalone program and library which can downgrade Java classes/programs down to Java 8"
url = "https://github.com/RaphiMC/JavaDowngrader"
licenses {
license {
name = "LGPL-3.0 License"
url = "https://github.com/RaphiMC/JavaDowngrader/blob/main/LICENSE"
}
}
developers {
developer {
id = "RK_01"
}
}
scm {
connection = "scm:git:git://github.com/RaphiMC/JavaDowngrader.git"
developerConnection = "scm:git:ssh://github.com/RaphiMC/JavaDowngrader.git"
url = "https://github.com/RaphiMC/JavaDowngrader.git"
}
}
}
}
}
signing {
sign publishing.publications.maven
}
}
allprojects {
project.tasks.withType(PublishToMavenRepository).forEach {
it.dependsOn(project.tasks.withType(Sign))
}
}
dependencies {
api project(":runtime-dep")
api "org.ow2.asm:asm-commons:9.7"
}