Skip to content

Commit

Permalink
src包含common代码
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyRespawnanchor committed Oct 9, 2024
1 parent b8bb6e6 commit 3683894
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ subprojects {

loom {
silentMojangMappingsLicense()
accessWidenerPath = file("src/main/resources/ayame.accesswidener")
}

jar {
Expand Down
3 changes: 3 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ dependencies {

repositories {
mavenCentral()
}
loom {
accessWidenerPath = file("src/main/resources/ayame.accesswidener")
}
10 changes: 10 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ processResources {
}
}

loom {
accessWidenerPath = file("src/main/resources/ayame-fabric.accesswidener")
}

sourcesJar {
def commonSources = project(":common").sourcesJar
dependsOn commonSources
from commonSources.archiveFile.map { zipTree(it) }
}

shadowJar {
configurations = [project.configurations.shadowBundle]
archiveClassifier = 'dev-shadow'
Expand Down
10 changes: 10 additions & 0 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ processResources {
}
}

loom {
accessWidenerPath = file("src/main/resources/ayame-neoforge.accesswidener")
}

sourcesJar {
def commonSources = project(":common").sourcesJar
dependsOn commonSources
from commonSources.archiveFile.map { zipTree(it) }
}

shadowJar {
configurations = [project.configurations.shadowBundle]
archiveClassifier = 'dev-shadow'
Expand Down
8 changes: 1 addition & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,9 @@ pluginManagement {
maven { url "https://files.minecraftforge.net/maven/" }
gradlePluginPortal()
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.20'
}
}
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

rootProject.name = 'ayame'
rootProject.name = 'Ayame'

include 'common'
include 'fabric'
Expand Down

0 comments on commit 3683894

Please sign in to comment.