Skip to content

Instantly share code, notes, and snippets.

Avatar

Abrar Syed AbrarSyed

View GitHub Profile
@AbrarSyed
AbrarSyed / build.gradle
Created Oct 28, 2015
tweaker-server example
View build.gradle
plugins {
id "net.minecraftforge.gradle.tweaker-server" version "2.0.2"
}
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
minecraft {
version = "1.8"
View sourceReplace.gradle
task processSources(type: Copy) {
from (sourceSets.main.java) {
include "**/SpongeWorldEdit.java"
filter { line -> line.replaceAll("%VERSION%", project.version) }
}
from (sourceSets.main.java) {
exclude "**/SpongeWorldEdit.java"
}
into 'build/sources/main/java'
View TeamCity Gradle Changelog.gradle
/**
* Generates a TeamCity XML changelog via the REST API.
*/
task("createChangelog").doLast {
def teamCityURL = "http://ci.calclavia.com/"
/**
* Create a new file
*/
View json.json
{
"versions": [
{
"status": "fine",
"docUrl": "https://forgegradle.readthedocs.org",
"version": "2.0.0",
"changes": [
"Massive update fro ForgeGradle 1.2"
],
"bugs": [
@AbrarSyed
AbrarSyed / ideafix.gradle
Last active Aug 29, 2015
Put this in ~/.gradle/init.d
View ideafix.gradle
afterEvaluate {
allprojects { project ->
if (project.plugins.hasPlugin("idea"))
{
idea { module { inheritOutputDirs = true } }
}
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am abrarsyed on github.
  • I am abrarsyed (https://keybase.io/abrarsyed) on keybase.
  • I have a public key whose fingerprint is 2139 56E2 A661 F2A2 BAC3 2420 5E79 01F7 D085 FF5F

To claim this, I am signing this object:

View .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
##################################################
# Fancy PWD display function
##################################################
@AbrarSyed
AbrarSyed / build.gradle
Last active Aug 30, 2020
A custom script to build custom MCP snapshots.
View build.gradle
apply plugin: "java"
apply plugin: "maven"
// edit this area only.
// the build.gradle would have the patttern minecraft { mappings = "channel_dlVersion" }
ext.channel = "SomeRandomName"
ext.dlVersion = "custom"
ext.mcVersion = "1.7.10" // the targetted MC version
group = "de.oceanlabs.mcp"
@AbrarSyed
AbrarSyed / ToDo.md
Last active Aug 29, 2015
Abrars TODO list, unsorted
View ToDo.md

#McRelatedThings

  • ForgeGradle 2.0
  • add APs to FG as requested by lex
  • add non-semver warning to FG
  • dev-time dependency deobfuscation
  • make jenkins changelog task easier to use for build.gradle
  • search for ATs in dependencies MinecraftForge@ForgeGradle#79 ** (cant happen any time soon.)
  • make MrSmith (automated MC client)
  • use forge json to check versions
  • fix curseforge errors MinecraftForge@ForgeGradle#79
View IGroup.java
package net.minecraftforge.permissions.api;
import net.minecraft.entity.player.EntityPlayer;
import java.util.Collection;
import java.util.UUID;
/**
* A group object in the API.
*