1
0
mirror of https://github.com/chylex/Hardcore-Ender-Expansion-2.git synced 2024-11-25 04:42:45 +01:00

Compare commits

..

4 Commits

Author SHA1 Message Date
bc2690402f
Add Gradle convention plugins with a basic NeoForge mod 2024-02-19 21:18:35 +01:00
5864c6273d
Add Gradle 8.6 wrapper 2024-02-19 14:20:19 +01:00
6a2f878c35
Add .gitattributes and .gitignore 2024-02-19 14:20:19 +01:00
ae765d4d8c
Add README 2024-02-19 14:19:38 +01:00
106 changed files with 304 additions and 492 deletions

22
.gitignore vendored
View File

@ -1,17 +1,15 @@
# gradle # IntelliJ
/.idea/
*.iml
*.ipr
*.iws
# Gradle
.gradle/ .gradle/
build/ build/
# idea # Game
/.idea/
# eclipse
/bin/
*.launch
.settings
.metadata
.classpath
.project
# game
/run/ /run/

View File

@ -2,11 +2,9 @@ plugins {
idea idea
} }
group = "com.chylex.hee"
idea { idea {
module { module {
excludeDirs.add(file("gradle/wrapper")) excludeDirs.add(file("gradle"))
excludeDirs.add(file("run")) excludeDirs.add(file("run"))
} }
} }

View File

@ -1,24 +1,17 @@
# Mod # Mod
modId=hee group=com.chylex.hee
modName=Hardcore Ender Expansion 2 version=2.0.0-dev
modDescription=
modVersion=2.0.0-dev
modAuthor=chylex
modLicense=TODO
modURL=https://hee.chylex.com
modAuthorsURL=https://hee.chylex.com/authors
modSourcesURL=https://github.com/chylex/Hardcore-Ender-Expansion-2
modIssuesURL=https://github.com/chylex/Hardcore-Ender-Expansion-2/issues
# Dependencies # Dependencies
minecraftVersion=1.19.3 neoForgeVersion=20.4.162-beta
parchmentVersion=2022.12.18 kotlinForForgeVersion=4.10.0
forgeVersion=44.1.16
# Constraints # Constraints
minecraftVersionRange=[1.19.3,1.20) minecraftVersionRange=[1.20.4,)
forgeVersionRange=[44.1.0,) neoForgeVersionRange=(20.4.161,)
kotlinForForgeVersionRange=[4.10.0,)
# Gradle # Gradle
org.gradle.jvmargs=-Xmx3G org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false org.gradle.caching=true
org.gradle.parallel=true

View File

@ -1,2 +1,10 @@
/.gradle/ # IntelliJ
/build/
/.idea/
*.iml
*.ipr
*.iws
# Gradle
/gradle/wrapper/gradle-wrapper.jar

View File

@ -15,17 +15,13 @@ idea {
} }
repositories { repositories {
maven(url = "https://maven.minecraftforge.net")
maven(url = "https://maven.parchmentmc.org")
maven(url = "https://repo.spongepowered.org/maven")
gradlePluginPortal() gradlePluginPortal()
maven(url = "https://maven.neoforged.net/releases") { name = "NeoForge" }
} }
dependencies { dependencies {
implementation(group = "net.minecraftforge.gradle", name = "ForgeGradle", version = "5.1.+") implementation(group = "net.neoforged.gradle", name = "userdev", version = "7.0.93")
implementation(group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version = "1.8.0") implementation(group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version = "1.9.22")
implementation(group = "org.parchmentmc.librarian.forgegradle", name = "org.parchmentmc.librarian.forgegradle.gradle.plugin", version = "1.+")
implementation(group = "org.spongepowered", name = "mixingradle", version = "0.7-SNAPSHOT")
} }
publishing { publishing {

View File

@ -1 +1,6 @@
org.gradle.daemon=false # Gradle
org.gradle.caching=true
org.gradle.parallel=true
# Publishing
systemProp.org.gradle.internal.publish.checksums.insecure=true

View File

@ -1 +0,0 @@
../../wrapper

View File

@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -0,0 +1 @@
42f393b1af836d81c0685598ecb1a89b

View File

@ -0,0 +1 @@
8625fdab93abbf9771592aa5f11955074d3ebc90

View File

@ -0,0 +1,80 @@
{
"formatVersion": "1.1",
"component": {
"group": "com.chylex.hee.gradle",
"module": "hee-gradle-plugins",
"version": "1",
"attributes": {
"org.gradle.status": "release"
}
},
"createdBy": {
"gradle": {
"version": "8.6"
}
},
"variants": [
{
"name": "apiElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
"org.gradle.jvm.environment": "standard-jvm",
"org.gradle.jvm.version": 17,
"org.gradle.libraryelements": "jar",
"org.gradle.usage": "java-api",
"org.jetbrains.kotlin.platform.type": "jvm"
},
"files": [
{
"name": "hee-gradle-plugins-1.jar",
"url": "hee-gradle-plugins-1.jar",
"size": 720929,
"sha512": "ce831f763f1ea8f746be1fad620c48a9af1ef4fff7554b8b71659fbce3cef18511658d33e74a4fb828963fc24ab71054144506bce2183c230eb22b7a4d7b5701",
"sha256": "98abc2b58bb424374c73a093b53665d22bbff48c967330a470813438b1c0d08d",
"sha1": "8625fdab93abbf9771592aa5f11955074d3ebc90",
"md5": "42f393b1af836d81c0685598ecb1a89b"
}
]
},
{
"name": "runtimeElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
"org.gradle.jvm.environment": "standard-jvm",
"org.gradle.jvm.version": 17,
"org.gradle.libraryelements": "jar",
"org.gradle.usage": "java-runtime",
"org.jetbrains.kotlin.platform.type": "jvm"
},
"dependencies": [
{
"group": "net.neoforged.gradle",
"module": "userdev",
"version": {
"requires": "7.0.93"
}
},
{
"group": "org.jetbrains.kotlin",
"module": "kotlin-gradle-plugin",
"version": {
"requires": "1.9.22"
}
}
],
"files": [
{
"name": "hee-gradle-plugins-1.jar",
"url": "hee-gradle-plugins-1.jar",
"size": 720929,
"sha512": "ce831f763f1ea8f746be1fad620c48a9af1ef4fff7554b8b71659fbce3cef18511658d33e74a4fb828963fc24ab71054144506bce2183c230eb22b7a4d7b5701",
"sha256": "98abc2b58bb424374c73a093b53665d22bbff48c967330a470813438b1c0d08d",
"sha1": "8625fdab93abbf9771592aa5f11955074d3ebc90",
"md5": "42f393b1af836d81c0685598ecb1a89b"
}
]
}
]
}

View File

@ -0,0 +1 @@
b64f069ed52a81e6279daf77a88eb1db

View File

@ -0,0 +1 @@
bc0d28a9c647edb17e260da2219ae765873c2ac3

View File

@ -7,31 +7,19 @@
<!-- do_not_remove: published-with-gradle-metadata --> <!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.chylex.hee.gradle</groupId> <groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId> <artifactId>hee-gradle-plugins</artifactId>
<version>1</version> <version>1</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>net.minecraftforge.gradle</groupId> <groupId>net.neoforged.gradle</groupId>
<artifactId>ForgeGradle</artifactId> <artifactId>userdev</artifactId>
<version>5.1.+</version> <version>7.0.93</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-gradle-plugin</artifactId> <artifactId>kotlin-gradle-plugin</artifactId>
<version>1.8.0</version> <version>1.9.22</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.parchmentmc.librarian.forgegradle</groupId>
<artifactId>org.parchmentmc.librarian.forgegradle.gradle.plugin</artifactId>
<version>1.+</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.spongepowered</groupId>
<artifactId>mixingradle</artifactId>
<version>0.7-SNAPSHOT</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -0,0 +1 @@
8d1141435ff5bbac0d3a2a4164d933f6

View File

@ -0,0 +1 @@
b9bcb22e5e722ddc506c20c71c307819a4221633

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata> <metadata>
<groupId>com.chylex.hee.gradle</groupId> <groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId> <artifactId>hee-gradle-plugins</artifactId>
<versioning> <versioning>
<latest>1</latest> <latest>1</latest>
<release>1</release> <release>1</release>
<versions> <versions>
<version>1</version> <version>1</version>
</versions> </versions>
<lastUpdated>20230219104731</lastUpdated> <lastUpdated>20240219200641</lastUpdated>
</versioning> </versioning>
</metadata> </metadata>

View File

@ -0,0 +1 @@
ee287950a70b8a7c180ca0c8770bd29b

View File

@ -0,0 +1 @@
7624af63729550165bc4b33206660d1dfb9d6f63

View File

@ -1 +0,0 @@
327ad8bacd3493a78c16498cab177afd

View File

@ -1 +0,0 @@
25b98e7445eeea1915e4f1350fb98d41b2711111

View File

@ -1 +0,0 @@
34f79fc527b7a225266633b1e95cf9fd40b9c0ae90361a95db4b5b3b2f705c5e

View File

@ -1 +0,0 @@
c6c42e334870729a42c8ae00ba1bc586a20de775e5cb8dfa3b4e85d8c2b1f7c5d41046e8aeae1a62edd505f619fe391744e20dd89528088c695f414706550e39

View File

@ -1,94 +0,0 @@
{
"formatVersion": "1.1",
"component": {
"group": "com.chylex.hee.gradle",
"module": "plugins",
"version": "1",
"attributes": {
"org.gradle.status": "release"
}
},
"createdBy": {
"gradle": {
"version": "7.5.1"
}
},
"variants": [
{
"name": "apiElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
"org.gradle.jvm.environment": "standard-jvm",
"org.gradle.jvm.version": 17,
"org.gradle.libraryelements": "jar",
"org.gradle.usage": "java-api",
"org.jetbrains.kotlin.platform.type": "jvm"
},
"files": [
{
"name": "plugins-1.jar",
"url": "plugins-1.jar",
"size": 853930,
"sha512": "c6c42e334870729a42c8ae00ba1bc586a20de775e5cb8dfa3b4e85d8c2b1f7c5d41046e8aeae1a62edd505f619fe391744e20dd89528088c695f414706550e39",
"sha256": "34f79fc527b7a225266633b1e95cf9fd40b9c0ae90361a95db4b5b3b2f705c5e",
"sha1": "25b98e7445eeea1915e4f1350fb98d41b2711111",
"md5": "327ad8bacd3493a78c16498cab177afd"
}
]
},
{
"name": "runtimeElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
"org.gradle.jvm.environment": "standard-jvm",
"org.gradle.jvm.version": 17,
"org.gradle.libraryelements": "jar",
"org.gradle.usage": "java-runtime",
"org.jetbrains.kotlin.platform.type": "jvm"
},
"dependencies": [
{
"group": "net.minecraftforge.gradle",
"module": "ForgeGradle",
"version": {
"requires": "5.1.+"
}
},
{
"group": "org.jetbrains.kotlin",
"module": "kotlin-gradle-plugin",
"version": {
"requires": "1.8.0"
}
},
{
"group": "org.parchmentmc.librarian.forgegradle",
"module": "org.parchmentmc.librarian.forgegradle.gradle.plugin",
"version": {
"requires": "1.+"
}
},
{
"group": "org.spongepowered",
"module": "mixingradle",
"version": {
"requires": "0.7-SNAPSHOT"
}
}
],
"files": [
{
"name": "plugins-1.jar",
"url": "plugins-1.jar",
"size": 853930,
"sha512": "c6c42e334870729a42c8ae00ba1bc586a20de775e5cb8dfa3b4e85d8c2b1f7c5d41046e8aeae1a62edd505f619fe391744e20dd89528088c695f414706550e39",
"sha256": "34f79fc527b7a225266633b1e95cf9fd40b9c0ae90361a95db4b5b3b2f705c5e",
"sha1": "25b98e7445eeea1915e4f1350fb98d41b2711111",
"md5": "327ad8bacd3493a78c16498cab177afd"
}
]
}
]
}

View File

@ -1 +0,0 @@
d1b393ef437f35e9a27691366a95e39e

View File

@ -1 +0,0 @@
d5114a4b883290dfdf4321be8df4f60f83a18e21

View File

@ -1 +0,0 @@
1ddf9b3b4cacc4eed876cab4d4766d93e8ce6833620d0bc4b96dc21caa44e172

View File

@ -1 +0,0 @@
4d69cfc4d425c1c729fceab056d2607ac8e88f109db8725448a313a6fda01b245533638006cd0ea99025c8ca7f0350dcc596108d7512c055906c274e1dd35814

View File

@ -1 +0,0 @@
a2830a30f38843cd60e6707532e76156

View File

@ -1 +0,0 @@
21310571fe96a291d92ccf3cc5b41045c012043c

View File

@ -1 +0,0 @@
cb4f23b2e04592b37a278639894e3e3c72603b778ae5856cab36637b444e775e

View File

@ -1 +0,0 @@
e91efadc717db22f35b383d6b1439fff43932b4139a67239889e86bb142ecc35b01bb505cc254fc982e1a693916117a6e6faf12a689060e917d45f20c6fc23a5

View File

@ -1 +0,0 @@
532cef5f8ebe61c698d6ebd2d55ccb11

View File

@ -1 +0,0 @@
66a5fe2b962b9bbe284999386fc6bb91e26e83c1

View File

@ -1 +0,0 @@
2fe25a6a6810823290633311f64831e3a8c4661d2a6688381b03fbba94c6e04b

View File

@ -1 +0,0 @@
8be0060fbd77658fd69abca1c97cd682bd683f024cfe16d9790c6cb95dc179e5c024f412c181ae4b29cf15843b953d5aafafcb05df6564fdfe99be7e496bd538

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.forge</groupId>
<artifactId>hee.forge.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -1 +0,0 @@
72bc41ff758a20023ea33ecb4895a5703d20f769

View File

@ -1 +0,0 @@
c87d9c1f155e8d57634be0308af049c602becd2e9ce3be9a32000eb534d2d150

View File

@ -1 +0,0 @@
91c2b331568b37c9c19a2935a0066d6b3c9cfb7c32a59d93a379b65708158303b1768bbf31b74f1bc96cf542019a6cbba2d3a340055d26338ff0b025a93ba2fc

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.forge</groupId>
<artifactId>hee.forge.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -1 +0,0 @@
86d80c0b115a35e03cae0e9dab0be75b

View File

@ -1 +0,0 @@
16499be6397dd63dc7e81142f3cda1f8109ca9f0

View File

@ -1 +0,0 @@
635115d09568353c8b7c6091e1ee7c05fa33da71d12cea6a91d373943df613d4

View File

@ -1 +0,0 @@
68d68d2f96b91e8fef0eaec55e3e260f0d8c4418610fd96fd41669b9eb84144bb2c86aae0fe320b4ca943a74d64b4144bd5214c76a06bc8d2e481cd0685b304d

View File

@ -8,7 +8,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.chylex.hee.gradle</groupId> <groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId> <artifactId>hee-gradle-plugins</artifactId>
<version>1</version> <version>1</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1 +1 @@
ac1b7ed6a176da9587ae6f621f7e24bf f196bd1a3bc41dee8da6f62de657232d

View File

@ -1 +1 @@
11fec6852ff9a0f76628c1b4ff1ffe4c75c914fa 28057427bd53cdd856eaf9ee66a132d9a1125be1

View File

@ -1 +0,0 @@
fe771766068f84f95b47a44c641271a52a088a7a4130a2d8024004e8912a0554

View File

@ -1 +0,0 @@
051560621558bd04e007a6a67f2e53f718375014720602bb675ccafc598f38fc81966d779191cc5cd5335d8d16a303d09dab65c18d1d6fdf39ad186ec073c9ee

View File

@ -8,6 +8,6 @@
<versions> <versions>
<version>1</version> <version>1</version>
</versions> </versions>
<lastUpdated>20230219104724</lastUpdated> <lastUpdated>20240219200634</lastUpdated>
</versioning> </versioning>
</metadata> </metadata>

View File

@ -1 +1 @@
ddc2a83e0d723f35a9d198463f75afe9 fc0d8363883a1491b8eb9aee24ca6403

View File

@ -1 +1 @@
800fb25b482d0d7deafb3b3d4ba8a2107d685023 c06522e4d92f148b720287c643661e461c91b62a

View File

@ -1 +0,0 @@
adb92ad13ec8cf614832e81259cbbf275f8cefc6ca85efb0e0b19f72508b6b8b

View File

@ -1 +0,0 @@
b53d2d545bedaf6ac0b26d2d66a5dd1f69dc02280468078b0f3ae60ddb57b824a902e9cb97da903ccc175c4d04a13dfa52a227277deb07a6176ecd6b3355f022

View File

@ -8,7 +8,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.chylex.hee.gradle</groupId> <groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId> <artifactId>hee-gradle-plugins</artifactId>
<version>1</version> <version>1</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1 +1 @@
98e1ec575082911834164fdacc463b55 8c4f03e97711738d21870d5a9918bc7e

View File

@ -1 +1 @@
bb72ef43ab5bbe88d0512362f170fc0ae45304ac 32e486aa78a2b3428b3f1151dbc7fbf674d4b009

View File

@ -1 +0,0 @@
667ba69ba9834612da77498c9d321a626375640aa25a006defb4cac680f9c916

View File

@ -1 +0,0 @@
04ed0c0b11e8436f73ff45e73a08e6181c1dfe9b30b6943e0105d25cdded9ef8e28a22b84565afb139d111671072ba4c1acc04e79d4efed2d5195cab984a5e37

View File

@ -8,6 +8,6 @@
<versions> <versions>
<version>1</version> <version>1</version>
</versions> </versions>
<lastUpdated>20230219104724</lastUpdated> <lastUpdated>20240219200634</lastUpdated>
</versioning> </versioning>
</metadata> </metadata>

View File

@ -1 +1 @@
2a6791fc10d18700c4d2d90ee42bb10d fb4927d7ecb6f5d699ae818cd32e6d2c

View File

@ -1 +1 @@
9eba40923a5db98ff8d3664dc0e5fbb70a0f1f35 8634ddd9fe7af67ab0703ac73dfffad531005f44

View File

@ -1 +0,0 @@
9200a3c10b73033039a76de670c88977c3f5bd2a57bb55b446b76f1ec0f9032f

View File

@ -1 +0,0 @@
357416a672d0256c6162304e1453d5776683f5d934d02a77c6714ffe040d70f4bf3566364c07a8651146a3d4b8f6762dd43fc14301567e601b6c0f2ac40e239e

View File

@ -8,7 +8,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.chylex.hee.gradle</groupId> <groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId> <artifactId>hee-gradle-plugins</artifactId>
<version>1</version> <version>1</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1 +1 @@
ffe775f0b29a8ca11d52de40fb60703c e600fee6a3545c69c77dc076b28eb823

View File

@ -1 +1 @@
f5a290f8d21d893403809403f816bd759edb0ae5 7e65b2d10962b59d1ddc7cfcf54b6db6c21c384b

View File

@ -1 +0,0 @@
d8fc7322ccf9830a7d27c7e757ebb4a2fac0e9192f4afcc848c7824c1cd3c47d

View File

@ -1 +0,0 @@
92d3d35dd0f86697d5b4761b6f6a82dbad7e7c7dd2b0508886cbb791784e5ce21eed12cd728b231778b0a94999dec442ee4ccc07d7d4c41695f2f42564a31474

View File

@ -8,6 +8,6 @@
<versions> <versions>
<version>1</version> <version>1</version>
</versions> </versions>
<lastUpdated>20230219104724</lastUpdated> <lastUpdated>20240219200634</lastUpdated>
</versioning> </versioning>
</metadata> </metadata>

View File

@ -1 +1 @@
2e495e0fbf39de9f25fc5b1d1a47553b 19ff71d9deccb0e3d5dad71de26fa9a2

View File

@ -1 +1 @@
2fc69e2b7ab6a2a76dd241cf421ffca95d4777f6 d2d7360c1ceb2661c436c52bcde03d689487d25b

View File

@ -1 +0,0 @@
937e32cb00f57a532dbb69008764a1f4b67be899889b842753261fccb6930b93

View File

@ -1 +0,0 @@
b4b0e08884c65caa43daac900bd30a0792257d161e9ce37da606f874f8ff5427dc8b4b1d8bdd5c49e4629693ed996ce520fbf1b471ecbe34985e6d48a3aa87b4

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.vanilla</groupId>
<artifactId>hee.vanilla.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -1 +0,0 @@
d7c3731fd415e6c27f77085956a316c1ceb847b5

View File

@ -1 +0,0 @@
24b56698554741bc8c8b803dcf332e48598210fda02bf5c1c3324a52765f5aa1

View File

@ -1 +0,0 @@
02ae32e3dba0656a26c6d0fc57e45d0ae6b962dadc286e1e08467c06d033ddb046451d23beef2a4b0b0688793a7b6b6ca7b3d5adfa126a1f0d89dd39cb1749af

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.vanilla</groupId>
<artifactId>hee.vanilla.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -1 +0,0 @@
f87c739f02b985a416901ab71df1c4cf

View File

@ -1 +0,0 @@
b9f382aaec83f4269186a18019505ea3f76030cb

View File

@ -1 +0,0 @@
662dc1f366b013f8a79e49f3e960d010aef8d92453b1df43407422af10741b39

View File

@ -1 +0,0 @@
d507c225b69d9c6e69d3a2e1021fee92a51999a893a7af01ad210db55c3493d8afc047e194dddaab776626a9c48cbaa1202b4ced063e41213ed9abb18b9b6517

View File

@ -1 +1 @@
rootProject.name = "plugins" rootProject.name = "hee-gradle-plugins"

View File

@ -1,10 +0,0 @@
plugins {
id("hee.minecraft")
}
val minecraftVersion: String by project
val forgeVersion: String by project
dependencies {
minecraft("net.minecraftforge:forge:${minecraftVersion}-${forgeVersion}")
}

View File

@ -2,6 +2,14 @@ plugins {
java java
} }
sourceSets {
configureEach {
java.setSrcDirs(listOf(file("./$name/java")))
resources.setSrcDirs(listOf(file("./$name/resources")))
}
}
java { java {
toolchain { toolchain {
languageVersion.set(JavaLanguageVersion.of(17)) languageVersion.set(JavaLanguageVersion.of(17))

View File

@ -1,18 +1,25 @@
val kotlinForForgeVersion: String by project
plugins { plugins {
id("hee.java") id("hee.java")
kotlin("jvm") kotlin("jvm")
} }
sourceSets { sourceSets {
main { configureEach {
java.setSrcDirs(emptyList<File>()) java.setSrcDirs(emptyList<File>())
kotlin.setSrcDirs(listOf(file("./$name/kotlin")))
} }
}
test {
java.setSrcDirs(emptyList<File>()) repositories {
maven(url = "https://thedarkcolour.github.io/KotlinForForge") {
name = "KotlinForForge"
content { includeGroup("thedarkcolour") }
} }
} }
dependencies { dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
implementation("thedarkcolour:kotlinforforge-neoforge:${kotlinForForgeVersion}")
} }

View File

@ -1,43 +1,12 @@
val neoForgeVersion: String by project
plugins { plugins {
idea id("hee.java")
id("hee.kotlin") id("net.neoforged.gradle.userdev")
id("net.minecraftforge.gradle")
id("org.parchmentmc.librarian.forgegradle")
id("org.spongepowered.mixin")
} }
idea { dependencies {
module { implementation("net.neoforged:neoforge:$neoForgeVersion")
excludeDirs.add(file("src/main/java"))
excludeDirs.add(file("src/test/java"))
}
} }
val minecraftVersion: String by project runs.clear()
val parchmentVersion: String by project
minecraft {
mappings("parchment", "${parchmentVersion}-${minecraftVersion}")
}
val modId: String by project
val modName: String by project
val modDescription: String by project
val modVersion: String by project
val modLicense: String by project
val modURL: String by project
val modAuthorsURL: String by project
val modSourcesURL: String by project
val modIssuesURL: String by project
tasks.processResources {
inputs.property("id", modId)
inputs.property("name", modName)
inputs.property("description", modDescription)
inputs.property("version", modVersion)
inputs.property("license", modLicense)
inputs.property("modURL", modURL)
inputs.property("authorsURL", modAuthorsURL)
inputs.property("sourcesURL", modSourcesURL)
inputs.property("issuesURL", modIssuesURL)
}

View File

@ -1,9 +0,0 @@
plugins {
id("hee.minecraft")
}
val minecraftVersion: String by project
dependencies {
minecraft("net.minecraft:joined:${minecraftVersion}")
}

Binary file not shown.

View File

@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

35
gradlew vendored
View File

@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop. # Darwin, MinGW, and NonStop.
# #
# (3) This script is generated from the Groovy template # (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project. # within the Gradle project.
# #
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
@ -80,13 +80,11 @@ do
esac esac
done done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit # This is normally unused
# shellcheck disable=SC2034
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum MAX_FD=maximum
@ -133,22 +131,29 @@ location of your Java installation."
fi fi
else else
JAVACMD=java JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the Please set the JAVA_HOME variable in your environment to match the
location of your Java installation." location of your Java installation."
fi
fi fi
# Increase the maximum file descriptors if we can. # Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #( case $MAX_FD in #(
max*) max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) || MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit" warn "Could not query maximum file descriptor limit"
esac esac
case $MAX_FD in #( case $MAX_FD in #(
'' | soft) :;; #( '' | soft) :;; #(
*) *)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" || ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD" warn "Could not set maximum file descriptor limit to $MAX_FD"
esac esac
@ -193,11 +198,15 @@ if "$cygwin" || "$msys" ; then
done done
fi fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
# shell script including quotes and variable substitutions, so put them in DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded. # Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \ set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \ "-Dorg.gradle.appname=$APP_BASE_NAME" \

21
gradlew.bat vendored
View File

@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=. if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@ -42,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute if %ERRORLEVEL% equ 0 goto execute
echo. echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. echo location of your Java installation. 1>&2
goto fail goto fail
@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute if exist "%JAVA_EXE%" goto execute
echo. echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. echo location of your Java installation. 1>&2
goto fail goto fail

View File

@ -1,77 +0,0 @@
import net.minecraftforge.gradle.common.util.RunConfig
val modId: String by project
val modName: String by project
val modAuthor: String by project
plugins {
id("hee.forge")
}
repositories {
mavenCentral()
maven(url = "https://thedarkcolour.github.io/KotlinForForge/")
}
minecraft {
fun RunConfig.registerMod(projects: Collection<Project>) {
mods {
register(modId) {
sources(projects.mapNotNull { it.extensions.findByType<SourceSetContainer>()?.findByName("main") })
}
}
}
fun RunConfig.configureRun() {
taskName(name)
workingDirectory(rootProject.file("run"))
ideaModule("${rootProject.name}${path.replace(':', '.')}.main")
property("forge.logging.markers", "REGISTRIES")
property("forge.logging.console.level", "debug")
property("forge.enabledGameTestNamespaces", modId)
}
fun runGame(run: RunConfig) = with(run) {
configureRun()
registerMod(rootProject.subprojects)
}
runs {
create("client", ::runGame)
create("server", ::runGame)
}
}
fun DependencyHandler.implementationProject(name: String) {
implementation(project(name)) {
exclude("net.minecraft", "joined")
}
}
dependencies {
implementation("thedarkcolour:kotlinforforge:4.0.0")
}
val minecraftVersionRange: String by project
val forgeVersionRange: String by project
tasks.processResources {
inputs.property("minecraftVersionRange", minecraftVersionRange)
inputs.property("forgeVersionRange", forgeVersionRange)
expand(inputs.properties)
}
tasks.jar {
manifest {
attributes("Specification-Title" to modId)
attributes("Specification-Vendor" to modAuthor)
attributes("Specification-Version" to "1")
attributes("Implementation-Title" to modName)
attributes("Implementation-Version" to archiveVersion)
attributes("Implementation-Vendor" to modAuthor)
}
finalizedBy("reobfJar")
}

View File

@ -1,6 +0,0 @@
package com.chylex.hee
import net.minecraftforge.fml.common.Mod
@Mod("hee")
object HardcoreEnderExpansionMod

Some files were not shown because too many files have changed in this diff Show More