Skip to content

Commit

Permalink
new hooks + github updates
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Apr 23, 2017
1 parent 7cd8106 commit d030e4d
Show file tree
Hide file tree
Showing 24 changed files with 415 additions and 612 deletions.
32 changes: 32 additions & 0 deletions build.gradle
@@ -0,0 +1,32 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'co.riiid:gradle-github-plugin:0.4.2'
}
}

apply plugin: 'co.riiid.gradle'

version = '1.0.0'
group = 'com.uyjulian.minecraft.XrayMod'

github {
owner = 'uyjulian'
repo = 'MinecraftX-RAY'
token = System.getenv('GRADLE_GITHUB_API_TOKEN')
tagName = project.version
targetCommitish = 'master'
name = 'v' + project.version
prerelease = true
draft = true
assets = [
'mcxray1.8.9/build/libs/mod-mcxray1.8.9-' + project.version + '-mc1.8.9.litemod',
'mcxray1.9/build/libs/mod-mcxray1.9-' + project.version + '-mc1.9.litemod',
'mcxray1.9.4/build/libs/mod-mcxray1.9.4-' + project.version + '-mc1.9.4.litemod',
'mcxray1.10.2/build/libs/mod-mcxray1.10.2-' + project.version + '-mc1.10.2.litemod',
'mcxray1.11/build/libs/mod-mcxray1.11-' + project.version + '-mc1.11.litemod',
'mcxray1.11.2/build/libs/mod-mcxray1.11.2-' + project.version + '-mc1.11.2.litemod'
]
}
34 changes: 2 additions & 32 deletions mcxray1.10.2/build.gradle
Expand Up @@ -19,17 +19,14 @@ buildscript {
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}

apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.jfrog.bintray'

version = "1.10.2-r2"
group = "com.uyjulian.minecraft.XrayMod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "uyjuliansXrayMod"
version = rootProject.version
group = rootProject.group

minecraft {
version = "1.10.2"
Expand All @@ -47,32 +44,6 @@ sourceSets {
srcDir project(':mcxray1.9').file("src/main/resources")
srcDir project(':mcxrayshare').file("src/main/resources")
}
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
filesSpec {
from 'build/libs'
into '.'
}
pkg {
repo = 'MinecraftMods'
name = 'MinecraftX-RAY'
version {
name = project.version
released = new Date()
}
}
}

sourceSets {
main {
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

Expand All @@ -82,7 +53,6 @@ mixin {

litemod {
json {
name = "uyjuliansXrayMod"
displayName = "uyjulian's X-ray Mod"
author = "uyjulian"
mcversion = "1.10.r1"
Expand Down
34 changes: 2 additions & 32 deletions mcxray1.11.2/build.gradle
Expand Up @@ -19,17 +19,14 @@ buildscript {
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}

apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.jfrog.bintray'

version = "1.11.2-r1"
group = "com.uyjulian.minecraft.XrayMod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "uyjuliansXrayMod"
version = rootProject.version
group = rootProject.group

minecraft {
version = "1.11.2"
Expand All @@ -47,32 +44,6 @@ sourceSets {
srcDir project(':mcxray1.9').file("src/main/resources")
srcDir project(':mcxrayshare').file("src/main/resources")
}
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
filesSpec {
from 'build/libs'
into '.'
}
pkg {
repo = 'MinecraftMods'
name = 'MinecraftX-RAY'
version {
name = project.version
released = new Date()
}
}
}

sourceSets {
main {
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

Expand All @@ -82,7 +53,6 @@ mixin {

litemod {
json {
name = "uyjuliansXrayMod"
displayName = "uyjulian's X-ray Mod"
author = "uyjulian"
mcversion = "1.11.2"
Expand Down
27 changes: 2 additions & 25 deletions mcxray1.11/build.gradle
Expand Up @@ -19,17 +19,14 @@ buildscript {
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}

apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.jfrog.bintray'

version = "1.11-r1"
group = "com.uyjulian.minecraft.XrayMod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "uyjuliansXrayMod"
version = rootProject.version
group = rootProject.group

minecraft {
version = "1.11"
Expand All @@ -47,25 +44,6 @@ sourceSets {
srcDir project(':mcxray1.9').file("src/main/resources")
srcDir project(':mcxrayshare').file("src/main/resources")
}
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
filesSpec {
from 'build/libs'
into '.'
}
pkg {
repo = 'MinecraftMods'
name = 'MinecraftX-RAY'
version {
name = project.version
released = new Date()
}
}
}

Expand All @@ -75,7 +53,6 @@ mixin {

litemod {
json {
name = "uyjuliansXrayMod"
displayName = "uyjulian's X-ray Mod"
author = "uyjulian"
mcversion = "1.11"
Expand Down
34 changes: 2 additions & 32 deletions mcxray1.8.9/build.gradle
Expand Up @@ -19,17 +19,14 @@ buildscript {
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}

apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.jfrog.bintray'

version = "1.8.9-r1"
group = "com.uyjulian.minecraft.XrayMod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "uyjuliansXrayMod"
version = rootProject.version
group = rootProject.group

minecraft {
version = "1.8.9"
Expand All @@ -47,32 +44,6 @@ sourceSets {
srcDir project(':mcxray1.8.9').file("src/main/resources")
srcDir project(':mcxrayshare').file("src/main/resources")
}
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
filesSpec {
from 'build/libs'
into '.'
}
pkg {
repo = 'MinecraftMods'
name = 'MinecraftX-RAY'
version {
name = project.version
released = new Date()
}
}
}

sourceSets {
main {
// Refmap declaration must match the refmap name specified in the json config
refMap = "mixins.uyjuliansXrayMod.refmap.json"
}
}

Expand All @@ -82,7 +53,6 @@ mixin {

litemod {
json {
name = "uyjuliansXrayMod"
displayName = "uyjulian's X-ray Mod"
author = "uyjulian"
mcversion = "1.8.9"
Expand Down
@@ -0,0 +1,22 @@
/* Copyright (c) 2014-2017, Julian Uy
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/

package com.uyjulian.minecraft.XrayMod;

import net.minecraft.util.ChatComponentText;

public class XrayModVersionUtils {
public static void putLineInChat(String lineToPrint) {
UyjuliansXrayModMain.getModInstance().minecraftInstance.ingameGUI.getChatGUI().printChatMessage(new ChatComponentText("§l§o§6[" + "UjXr" + "]§r " + lineToPrint));
}
}

This file was deleted.

0 comments on commit d030e4d

Please sign in to comment.