Skip to content

Commit

Permalink
Rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed May 4, 2024
1 parent b7c8b87 commit 97d6375
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy Snapshot
on:
push:
branches: ['main']
branches: ['leaper']
paths-ignore:
- 'license.txt'
- 'readme.md'
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Get project version
Expand All @@ -31,5 +31,5 @@ jobs:
if: endsWith(steps.get_version.outputs.version, '-SNAPSHOT')
run: ./gradlew -Dorg.gradle.parallel=true publish --no-daemon --stacktrace
env:
ORG_GRADLE_PROJECT_paperUsername: ${{ secrets.DEPLOY_USER }}
ORG_GRADLE_PROJECT_paperPassword: ${{ secrets.DEPLOY_PASS }}
ORG_GRADLE_PROJECT_quantumleaperUsername: ${{ secrets.REPO_USER }}
ORG_GRADLE_PROJECT_quantumleaperPassword: ${{ secrets.REPO_PASSWORD }}
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Deploy release
run: ./gradlew -Dorg.gradle.parallel=true publish --no-daemon --stacktrace
env:
ORG_GRADLE_PROJECT_paperUsername: ${{ secrets.DEPLOY_USER }}
ORG_GRADLE_PROJECT_paperPassword: ${{ secrets.DEPLOY_PASS }}
ORG_GRADLE_PROJECT_quantumleaperUsername: ${{ secrets.REPO_USER }}
ORG_GRADLE_PROJECT_quantumleaperPassword: ${{ secrets.REPO_PASSWORD }}
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ subprojects {
}
}

val mainClass = "io.papermc.paperclip.Main"
val mainClass = "cn.dreeam.leaper.Main"

tasks.jar {
val java6Jar = project(":java6").tasks.named("jar")
Expand Down Expand Up @@ -66,10 +66,10 @@ publishing {
withoutBuildIdentifier()

pom {
val repoPath = "PaperMC/Paperclip"
val repoPath = "Winds-Studio/QuantumLeaper"
val repoUrl = "https://github.com/$repoPath"

name.set("Paperclip")
name.set("QuantumLeaper")
description.set(project.description)
url.set(repoUrl)
packaging = "jar"
Expand All @@ -94,6 +94,12 @@ publishing {
email.set("[email protected]")
url.set("https://github.com/DemonWav")
}
developer {
id.set("Dreeam-qwq")
name.set("Dreeam")
email.set("[email protected]")
url.set("https://github.com/Dreeam-qwq")
}
}

scm {
Expand All @@ -105,15 +111,11 @@ publishing {
}

repositories {
val url = if (isSnapshot) {
"https://repo.papermc.io/repository/maven-snapshots/"
} else {
"https://repo.papermc.io/repository/maven-releases/"
}
val url = "https://maven.nostal.ink/"

maven(url) {
credentials(PasswordCredentials::class)
name = "paper"
name = "quantumleaper"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group = io.papermc
version = 3.0.4-SNAPSHOT
group = cn.dreeam
version = 1.0.0-SNAPSHOT
description = Launcher for the Paper Minecraft server
2 changes: 1 addition & 1 deletion java17/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
}

tasks.shadowJar {
val prefix = "paperclip.libs"
val prefix = "cn.dreeam.leaper.libs"
listOf("org.apache", "org.tukaani", "io.sigpipe").forEach { pack ->
relocate(pack, "$prefix.$pack")
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.papermc.paperclip;
package cn.dreeam.leaper;

import java.io.IOException;
import java.net.MalformedURLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.papermc.paperclip;
package cn.dreeam.leaper;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* MIT License
*/

package io.papermc.paperclip;
package cn.dreeam.leaper;

import io.sigpipe.jbsdiff.InvalidHeaderException;
import io.sigpipe.jbsdiff.Patch;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.papermc.paperclip;
package cn.dreeam.leaper;

import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -12,22 +12,21 @@
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public final class Paperclip {
public final class QuantumLeaper {

public static void main(final String[] args) {
if (Path.of("").toAbsolutePath().toString().contains("!")) {
System.err.println("Paperclip may not run in a directory containing '!'. Please rename the affected folder.");
System.err.println("Leaf may not run in a directory containing '!'. Please rename the affected folder.");
System.exit(1);
}

final URL[] classpathUrls = setupClasspath();

final ClassLoader parentClassLoader = Paperclip.class.getClassLoader();
final ClassLoader parentClassLoader = QuantumLeaper.class.getClassLoader();
final URLClassLoader classLoader = new URLClassLoader(classpathUrls, parentClassLoader);

final String mainClassName = findMainClass();
Expand Down Expand Up @@ -89,7 +88,7 @@ private static URL[] setupClasspath() {
}

private static PatchEntry[] findPatches() {
final InputStream patchListStream = Paperclip.class.getResourceAsStream("/META-INF/patches.list");
final InputStream patchListStream = QuantumLeaper.class.getResourceAsStream("/META-INF/patches.list");
if (patchListStream == null) {
return new PatchEntry[0];
}
Expand Down Expand Up @@ -119,7 +118,7 @@ private static FileEntry[] findLibraryEntries() {
return findFileEntries("libraries.list");
}
private static FileEntry[] findFileEntries(final String fileName) {
final InputStream libListStream = Paperclip.class.getResourceAsStream("/META-INF/" + fileName);
final InputStream libListStream = QuantumLeaper.class.getResourceAsStream("/META-INF/" + fileName);
if (libListStream == null) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.papermc.paperclip;
package cn.dreeam.leaper;

import java.io.IOException;
import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* MIT License
*/

package io.papermc.paperclip;
package cn.dreeam.leaper;

import java.lang.reflect.Method;

Expand All @@ -21,7 +21,7 @@ public static void main(final String[] args) {
}

try {
final Class<?> paperclipClass = Class.forName("io.papermc.paperclip.Paperclip");
final Class<?> paperclipClass = Class.forName("cn.dreeam.leaper.QuantumLeaper");
final Method mainMethod = paperclipClass.getMethod("main", String[].class);
mainMethod.invoke(null, (Object) args);
} catch (final Exception e) {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.5.0")
}

rootProject.name = "paperclip"
rootProject.name = "quantumleaper"
include("java6", "java17")

0 comments on commit 97d6375

Please sign in to comment.