aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2019-12-19 15:07:01 -0800
committerthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2019-12-19 15:07:01 -0800
commit88d27da569789b80844418af4d941c7a93299311 (patch)
treec221062b2e3c7179525dfacdf4aec7ab71677549 /build.gradle
parent359d108e282e8bbfa5e87b2e6099f89ac706240e (diff)
downloadKotlinForForge-88d27da569789b80844418af4d941c7a93299311.tar.gz
KotlinForForge-88d27da569789b80844418af4d941c7a93299311.tar.bz2
KotlinForForge-88d27da569789b80844418af4d941c7a93299311.zip
Update 1.0.0
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle55
1 files changed, 2 insertions, 53 deletions
diff --git a/build.gradle b/build.gradle
index 26760ab..363c8c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,14 +15,10 @@ plugins {
}
apply plugin: 'net.minecraftforge.gradle'
-// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
-apply plugin: 'maven-publish'
-apply plugin: 'eclipse'
-apply plugin: 'idea'
apply plugin: 'kotlin'
version = '1.0.0'
-group = 'thedarkcolour.kotlinforforge' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
+group = 'thedarkcolour.kotlinforforge'
archivesBaseName = 'kotlinforforge'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
@@ -37,51 +33,27 @@ minecraft {
client {
workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- // Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
-
- mods {
- examplemod {
- source sourceSets.main
- }
- }
}
server {
workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- // Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
-
- mods {
- examplemod {
- source sourceSets.main
- }
- }
}
data {
workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- // Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')
-
- mods {
- examplemod {
- source sourceSets.main
- }
- }
}
}
}
@@ -127,7 +99,7 @@ jar {
attributes([
"Specification-Title": "Mod Language Provider",
"Specification-Vendor": "Forge",
- "Specification-Version": "1", // We are version 1 of ourselves
+ "Specification-Version": "1",
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"thedarkcolour",
@@ -136,29 +108,6 @@ jar {
}
}
-// Example configuration to allow publishing using the maven-publish task
-// we define a custom artifact that is sourced from the reobfJar output task
-// and then declare that to be published
-// Note you'll need to add a repository hereI
-def reobfFile = file("$buildDir/reobfJar/output.jar")
-def reobfArtifact = artifacts.add('default', reobfFile) {
- type 'jar'
- builtBy 'reobfJar'
-}
-
-publishing {
- publications {
- mavenJava(MavenPublication) {
- artifact reobfArtifact
- }
- }
- repositories {
- maven {
- url "file:///${project.projectDir}/mcmodsrepo"
- }
- }
-}
-
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xinline-classes"]