Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

Commit f39704f

Browse files
committed
Updated build.gradle, Relicensed under LGPL-3.0
1 parent e653ccc commit f39704f

87 files changed

Lines changed: 605 additions & 1108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/copyright/GPL_3_0.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/copyright/LGPL_3_0.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copyright/profiles_settings.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 159 additions & 668 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 71 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
plugins {
2-
id "maven-publish"
3-
}
4-
51
allprojects {
62
apply plugin: "java-library"
3+
apply plugin: "maven-publish"
4+
apply plugin: "signing"
75

86
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
9-
[compileJava, compileTestJava, javadoc].each {
10-
it.options.encoding = "UTF-8"
11-
}
7+
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
128

139
group = project.maven_group
1410
archivesBaseName = project.maven_name
@@ -20,44 +16,82 @@ allprojects {
2016
repositories {
2117
mavenCentral()
2218
}
23-
}
2419

25-
dependencies {
26-
api project(":runtime-dep")
27-
28-
api "org.ow2.asm:asm-commons:9.5"
29-
api "org.slf4j:slf4j-api:2.0.7"
30-
}
20+
java {
21+
withSourcesJar()
22+
withJavadocJar()
23+
}
3124

32-
java {
33-
withSourcesJar()
34-
withJavadocJar()
35-
}
25+
jar {
26+
from("LICENSE") {
27+
rename { "${it}_${project.archivesBaseName}" }
28+
}
29+
}
3630

37-
jar {
38-
from("LICENSE") {
39-
rename { "${it}_${project.archivesBaseName}" }
31+
artifacts {
32+
archives javadocJar, sourcesJar
4033
}
41-
}
4234

43-
publishing {
44-
repositories {
45-
maven {
46-
name = "reposilite"
47-
url = project.maven_version.endsWith("SNAPSHOT") ? "https://maven.lenni0451.net/snapshots" : "https://maven.lenni0451.net/releases"
48-
credentials(PasswordCredentials)
49-
authentication {
50-
basic(BasicAuthentication)
35+
publishing {
36+
repositories {
37+
maven {
38+
name = "reposilite"
39+
url = project.maven_version.endsWith("SNAPSHOT") ? "https://maven.lenni0451.net/snapshots" : "https://maven.lenni0451.net/releases"
40+
41+
credentials(PasswordCredentials)
42+
authentication {
43+
basic(BasicAuthentication)
44+
}
5145
}
5246
}
53-
}
54-
publications {
55-
maven(MavenPublication) {
56-
groupId = project.maven_group
57-
artifactId = project.maven_name
58-
version = project.maven_version
47+
publications {
48+
maven(MavenPublication) {
49+
groupId = project.maven_group
50+
artifactId = project.maven_name
51+
version = project.maven_version
5952

60-
from components.java
53+
from components.java
54+
55+
pom {
56+
name = "JavaDowngrader"
57+
description = "Standalone program and library which can downgrade Java classes/programs down to Java 8"
58+
url = "https://github.com/RaphiMC/JavaDowngrader"
59+
licenses {
60+
license {
61+
name = "LGPL-3.0 License"
62+
url = "https://github.com/RaphiMC/JavaDowngrader/blob/main/LICENSE"
63+
}
64+
}
65+
developers {
66+
developer {
67+
id = "RK_01"
68+
}
69+
}
70+
scm {
71+
connection = "scm:git:git://github.com/RaphiMC/JavaDowngrader.git"
72+
developerConnection = "scm:git:ssh://github.com/RaphiMC/JavaDowngrader.git"
73+
url = "https://github.com/RaphiMC/JavaDowngrader.git"
74+
}
75+
}
76+
}
6177
}
6278
}
79+
80+
signing {
81+
setRequired(false)
82+
sign configurations.archives
83+
sign publishing.publications.maven
84+
}
85+
86+
project.tasks.withType(PublishToMavenRepository).forEach {
87+
it.dependsOn(project.tasks.withType(Sign))
88+
}
89+
90+
}
91+
92+
dependencies {
93+
api project(":runtime-dep")
94+
95+
api "org.ow2.asm:asm-commons:9.5"
96+
api "org.slf4j:slf4j-api:2.0.7"
6397
}

runtime-dep/build.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +0,0 @@
1-
plugins {
2-
id "maven-publish"
3-
}
4-
5-
java {
6-
withSourcesJar()
7-
withJavadocJar()
8-
}
9-
10-
publishing {
11-
repositories {
12-
maven {
13-
name = "reposilite"
14-
url = project.maven_version.endsWith("SNAPSHOT") ? "https://maven.lenni0451.net/snapshots" : "https://maven.lenni0451.net/releases"
15-
credentials(PasswordCredentials)
16-
authentication {
17-
basic(BasicAuthentication)
18-
}
19-
}
20-
}
21-
publications {
22-
maven(MavenPublication) {
23-
groupId = project.maven_group
24-
artifactId = project.maven_name
25-
version = project.maven_version
26-
27-
from components.java
28-
}
29-
}
30-
}

runtime-dep/src/main/java/net/raphimc/javadowngrader/runtime/RuntimeRoot.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* This file is part of JavaDowngrader - https://github.com/RaphiMC/JavaDowngrader
33
* Copyright (C) 2023 RK_01/RaphiMC and contributors
44
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
5+
* This program is free software; you can redistribute it and/or
6+
* modify it under the terms of the GNU Lesser General Public
7+
* License as published by the Free Software Foundation; either
8+
* version 3 of the License, or (at your option) any later version.
99
*
1010
* This program is distributed in the hope that it will be useful,
1111
* but WITHOUT ANY WARRANTY; without even the implied warranty of

runtime-dep/src/main/java/net/raphimc/javadowngrader/runtime/java/lang/Module.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* This file is part of JavaDowngrader - https://github.com/RaphiMC/JavaDowngrader
33
* Copyright (C) 2023 RK_01/RaphiMC and contributors
44
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
5+
* This program is free software; you can redistribute it and/or
6+
* modify it under the terms of the GNU Lesser General Public
7+
* License as published by the Free Software Foundation; either
8+
* version 3 of the License, or (at your option) any later version.
99
*
1010
* This program is distributed in the hope that it will be useful,
1111
* but WITHOUT ANY WARRANTY; without even the implied warranty of

runtime-dep/src/main/java/net/raphimc/javadowngrader/runtime/java/lang/ModuleLayer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* This file is part of JavaDowngrader - https://github.com/RaphiMC/JavaDowngrader
33
* Copyright (C) 2023 RK_01/RaphiMC and contributors
44
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
5+
* This program is free software; you can redistribute it and/or
6+
* modify it under the terms of the GNU Lesser General Public
7+
* License as published by the Free Software Foundation; either
8+
* version 3 of the License, or (at your option) any later version.
99
*
1010
* This program is distributed in the hope that it will be useful,
1111
* but WITHOUT ANY WARRANTY; without even the implied warranty of

runtime-dep/src/main/java/net/raphimc/javadowngrader/runtime/java/lang/StackWalker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* This file is part of JavaDowngrader - https://github.com/RaphiMC/JavaDowngrader
33
* Copyright (C) 2023 RK_01/RaphiMC and contributors
44
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
5+
* This program is free software; you can redistribute it and/or
6+
* modify it under the terms of the GNU Lesser General Public
7+
* License as published by the Free Software Foundation; either
8+
* version 3 of the License, or (at your option) any later version.
99
*
1010
* This program is distributed in the hope that it will be useful,
1111
* but WITHOUT ANY WARRANTY; without even the implied warranty of

0 commit comments

Comments
 (0)