Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/ISSUE_TEMPLATE/LAUNCH_ISSUE.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

180 changes: 48 additions & 132 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,154 +1,70 @@
plugins {
// Publishing
id 'com.matthewprenger.cursegradle' version '1.4.0'
id "com.modrinth.minotaur" version "2.+"

id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
id 'dev.architectury.loom' version '1.10-SNAPSHOT' apply false
id 'architectury-plugin' version '3.4-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

repositories {
mavenCentral();
mavenLocal()
maven {
name "Sonatype Snapshots"
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
maven {
url 'https://jitpack.io'
}
maven {
url 'https://notalpha.dev/maven/releases'
}
architectury {
minecraft = project.minecraft_version
}

loom {
accessWidenerPath = file("src/main/resources/dashloader.accesswidener")
allprojects {
group = rootProject.maven_group
version = rootProject.mod_version
}

dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// TODO jákob if you need modmenu uncomment this and in gradle.properties - !alpha
// modImplementation "com.terraformersmc:modmenu:$project.modmenu_version"

implementation "dev.notalpha:Hyphen:0.4.0-rc.5"
include "dev.notalpha:Hyphen:0.4.0-rc.5"

implementation "dev.notalpha:Taski:2.1.0"
include "dev.notalpha:Taski:2.1.0"
subprojects {
apply plugin: 'dev.architectury.loom'
apply plugin: 'architectury-plugin'
apply plugin: 'maven-publish'

implementation 'com.github.luben:zstd-jni:1.5.2-2'
include 'com.github.luben:zstd-jni:1.5.2-2'

modCompileOnly fabricApi.module("fabric-renderer-indigo", "0.69.1+1.19.3");
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
base {
// Set up a suffixed format for the mod jar names, e.g. `example-fabric`.
archivesName = "$rootProject.archives_name-$project.name"
}
}

processResources {
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
}

tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"

// Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release = 17
}

java {
//include sources in maven publish
withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
dependencies {
minecraft "net.minecraft:minecraft:$rootProject.minecraft_version"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
}
}

// Publishing
modrinth {
token = project.hasProperty("modrinthApiKey") ? project.modrinthApiKey : ""
projectId = 'ZfQ3kTvR'
changelog = file("changelog.md").getText();
versionNumber = project.version
versionName = "$project.version".split("\\+")[0] + " for $project.minecraft_version"
uploadFile = remapJar
versionType = "alpha"
gameVersions = ['1.19.3']
loaders = ['fabric', 'quilt']
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()

curseforge {
apiKey = project.hasProperty("curseForgeApiKey") ? project.curseForgeApiKey : ""
project {
id = '472772'
changelogType = "markdown"
changelog = file("changelog.md");
releaseType = 'alpha'

addGameVersion "1.19.3"
addGameVersion "Fabric"
addGameVersion "Quilt"
addGameVersion "Java 17"

mainArtifact(remapJar) {
displayName = "$project.version".split("\\+")[0] + " for $project.minecraft_version"
}
}
options {
forgeGradleIntegration = false
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

tasks.register("publishMod") {
dependsOn 'modrinth'
dependsOn 'curseforge'
}

tasks.register("getVersion") {
print("$project.version")
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}

publishing {
repositories {
maven {
name = "notalpha"
url = "https://notalpha.dev/maven/releases"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
// Configure Maven publishing.
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = base.archivesName.get()
from components.java
}
}
}
publications {
maven(MavenPublication) {
from components.java

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}
}
44 changes: 44 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
architectury {
common rootProject.enabled_platforms.split(',')
}

repositories {
mavenCentral()
mavenLocal()
maven {
name "Sonatype Snapshots"
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
maven {
url 'https://jitpack.io'
}
maven {
url "https://notalpha.dev/maven/releases"
}
}

dependencies {
// We depend on Fabric Loader here to use the Fabric @Environment annotations,
// which get remapped to the correct annotations on each platform.
// Do NOT use other classes from Fabric Loader.
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"

modImplementation "dev.architectury:architectury:$rootProject.architectury_api_version"

implementation "dev.quantumfusion:Hyphen:0.4.0-rc.3"
include "dev.quantumfusion:Hyphen:0.4.0-rc.3"

implementation "dev.notalpha:Taski:2.1.0"
include "dev.notalpha:Taski:2.1.0"

implementation 'com.github.luben:zstd-jni:1.5.2-2'
include 'com.github.luben:zstd-jni:1.5.2-2'

implementation 'com.github.luben:zstd-jni:1.5.2-2'

modCompileOnly "net.fabricmc.fabric-api:fabric-renderer-indigo:1.5.2+2034447c28"
}

loom {
accessWidenerPath = file("src/main/resources/dashloader.accesswidener")
}
12 changes: 12 additions & 0 deletions common/src/main/java/cn/ksmcbrigade/dashloader/Dashloader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cn.ksmcbrigade.dashloader;

import dev.notalpha.dashloader.client.DashLoaderClient;

public final class Dashloader {
public static final String MOD_ID = "dashloader";

public static void init() {
System.out.println("DashLoaderForge loading...");
System.out.println("DashLoader need reload: "+DashLoaderClient.NEEDS_RELOAD);
}
}
Loading