This file contains hidden or 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 javax.swing.UIManager | |
| import groovy.ui.Console | |
| import org.codehaus.groovy.control.CompilerConfiguration | |
| import org.codehaus.groovy.control.customizers.ASTTransformationCustomizer | |
| import groovy.transform.* | |
| def transformations = [ThreadInterrupt, Canonical] | |
| Console.metaClass.newScript = { ClassLoader parent, Binding binding -> | |
| def config = new CompilerConfiguration() |
This file contains hidden or 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 { | |
| emma | |
| } | |
| dependencies { | |
| emma "emma:emma:2.1.5320" | |
| emma "emma:emma_ant:2.1.5320" | |
| } | |
| tmpDir = new File(buildDir, "tmp") |
This file contains hidden or 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 getMD5(File file) { | |
| new AntBuilder().with{ | |
| checksum(file: file, algorithm: 'MD5', property: 'result') | |
| it.project.properties.result | |
| } | |
| } | |
| println getMD5(new File(args[0])) |
This file contains hidden or 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 com.bluepapa32.gradle.plugins | |
| import org.apache.tools.ant.filters.EscapeUnicode | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.plugins.JavaBasePlugin | |
| public class Native2AsciiPlugin implements Plugin<Project> { | |
| def void apply(Project project) { | |
| project.getPlugins().apply(JavaBasePlugin.class); |