Connect to public partsltd_dev database for use of mod by other people.

This commit is contained in:
2024-12-04 22:09:33 +00:00
parent 864b535ea6
commit ed6ce0fdc3
9 changed files with 131 additions and 52 deletions

View File

@@ -4,17 +4,10 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+'
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.74'
}
}
/*
plugins {
id 'eclipse'
id 'maven-publish'
id 'net.minecraftforge.gradle'
}
*/
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
@@ -51,19 +44,21 @@ minecraft {
}
}
dependencies {
/* Project */
minecraft 'net.minecraftforge:forge:1.18.2-40.1.0'
implementation 'mysql:mysql-connector-java:8.0.27'
repositories {
mavenCentral()
maven {
name = 'Forge'
url = 'https://maven.minecraftforge.net/'
}
}
/* Tests */
// Unit
dependencies {
minecraft 'net.minecraftforge:forge:1.18.2-40.2.4'
implementation 'mysql:mysql-connector-java:8.0.27'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.mockito:mockito-core:4.3.1'
testImplementation 'org.mockito:mockito-junit-jupiter:4.3.1'
// Integration
// testImplementation 'net.minecraftforge:forge:1.18.2-40.1.0:test'
}
jar {
@@ -74,7 +69,7 @@ jar {
"Specification-Version": "1",
"Implementation-Title": project.name,
"Implementation-Version": project.jar.archiveVersion,
"Implementation-Vendor" :"examplemodsareus",
"Implementation-Vendor": "examplemodsareus",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
@@ -82,7 +77,4 @@ jar {
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
}