This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'maven-publish' | |
task sourceJar(type: Jar) { | |
from sourceSets.main.allJava | |
} | |
task dummy << { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="datagrid_hack"></div> | |
<script> | |
(function ($) { | |
// check so that this code only fires once. | |
if ($._datagridHack) { | |
return; | |
} | |
$._datagridHack = function () { | |
var root = $('.datagrid_hack'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH CT AS ( | |
SELECT * | |
FROM umbracoNode | |
WHERE (nodeObjectType = 'A2CB7800-F571-4787-9638-BC48539A0EFB') | |
), | |
L1 AS ( | |
SELECT *, 1 'NewLevel', CAST(parentID as varchar) + ',' + CAST(id as varchar) 'NewPath' | |
FROM CT | |
WHERE parentID = -1 | |
), L2 AS ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def doesModuleExist(def notation) { | |
try { | |
def dep = project.dependencies.create(notation) | |
def conf = project.configurations.detachedConfiguration(dep) | |
// force resolution | |
def files = conf.files | |
} catch (Exception e) { | |
e.printStackTrace() | |
return false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories { | |
mavenCentral() | |
} | |
apply plugin:'java' | |
configurations { | |
metamodel | |
validator | |
processor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 | |
3 | |
5 | |
7 | |
11 | |
13 | |
17 | |
19 | |
23 | |
29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.company.gradle; | |
import groovy.lang.Closure; | |
import groovy.lang.MissingMethodException; | |
import org.gradle.api.Plugin; | |
import org.gradle.api.Project; | |
import java.util.HashMap; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.*; | |
class MyBean extends Expando { | |
def methodMissing(String name, def args) { | |
if(args.size() == 0) { | |
super.getProperty(name) | |
} else if(args.size() == 1) { | |
def value = args[0]; | |
def result = value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurations { | |
war_common | |
war_secure | |
mwar | |
pwar | |
swar | |
uwar | |
mwar.extendsFrom war_common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurations { | |
jarsIWant | |
} | |
dependencies { | |
jarsIWant ... | |
} | |
task copyJarsToWEBINF(type: Sync) { | |
from configurations.jarsIWant |
OlderNewer