Skip to content

Instantly share code, notes, and snippets.

View AbrarSyed's full-sized avatar

Abrar Syed AbrarSyed

View GitHub Profile
@AbrarSyed
AbrarSyed / build.gradle
Created October 28, 2015 15:22
tweaker-server example
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"
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'
/**
* Generates a TeamCity XML changelog via the REST API.
*/
task("createChangelog").doLast {
def teamCityURL = "http://ci.calclavia.com/"
/**
* Create a new file
*/
{
"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 August 29, 2015 14:18
Put this in ~/.gradle/init.d
afterEvaluate {
allprojects { project ->
if (project.plugins.hasPlugin("idea"))
{
idea { module { inheritOutputDirs = true } }
}
}
}

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:

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
##################################################
# Fancy PWD display function
##################################################
@AbrarSyed
AbrarSyed / build.gradle
Last active August 30, 2020 04:37
A custom script to build custom MCP snapshots.
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 August 29, 2015 14:06
Abrars TODO list, unsorted

#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
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.
*