From 045b38b082b6d42c455f71c5d1251e07c119cd30 Mon Sep 17 00:00:00 2001 From: "Rodrigo B. de Oliveira" Date: Fri, 1 Feb 2013 17:30:57 -0200 Subject: [PATCH] fix tabs --- bundles/IKVM.NET/build.gradle | 90 ++++++++++++++--------------- bundles/Unity/build.gradle | 14 ++--- bundles/org.apache.ivy/build.gradle | 68 +++++++++++----------- samples/IvyResolve/build.gradle | 40 ++++++------- 4 files changed, 106 insertions(+), 106 deletions(-) diff --git a/bundles/IKVM.NET/build.gradle b/bundles/IKVM.NET/build.gradle index 65c7871..dd6c5a2 100644 --- a/bundles/IKVM.NET/build.gradle +++ b/bundles/IKVM.NET/build.gradle @@ -13,7 +13,7 @@ buildscript { } repositories { - ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } + ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } } version = '7.1.4532.2' @@ -43,70 +43,70 @@ task extractLatest(type: Copy, dependsOn: downloadLatest) { } allprojects { - apply plugin: 'base' - group = rootProject.name + apply plugin: 'base' + group = rootProject.name } subprojects { - version = rootProject.version + version = rootProject.version - task zip(type: Zip) { - from ikvmDir - include "${project.name}.dll" - include "${project.name}.exe" - } + task zip(type: Zip) { + from ikvmDir + include "${project.name}.dll" + include "${project.name}.exe" + } - uploadDefault { - repositories { - ivy { url repositoryForPublishing } - } - } + uploadDefault { + repositories { + ivy { url repositoryForPublishing } + } + } - artifacts { - 'default' zip - } + artifacts { + 'default' zip + } } task publish { - dependsOn extractLatest - dependsOn allprojects*.tasks.uploadDefault + dependsOn extractLatest + dependsOn allprojects*.tasks.uploadDefault } configurations { - boo { - visible = false - } + boo { + visible = false + } } dependencies { - boo 'boo:boo:0.9.5.6' + boo 'boo:boo:0.9.5.6' } apply plugin: 'kaizen-lib-client' // provides update$config tasks def assemblyDependenciesFile = file('assemblyDependencies.gradle') task updateAssemblyDependencies { - dependsOn extractLatest - dependsOn updateBoo - inputs.source fileTree(dir: ikvmDir, include: 'IKVM*.dll') - inputs.source "$ikvmDir/ikvmc.exe" - inputs.source "$ikvmDir/ikvm.exe" - inputs.source "$ikvmDir/ikvmstub.exe" - outputs.file assemblyDependenciesFile + dependsOn extractLatest + dependsOn updateBoo + inputs.source fileTree(dir: ikvmDir, include: 'IKVM*.dll') + inputs.source "$ikvmDir/ikvmc.exe" + inputs.source "$ikvmDir/ikvm.exe" + inputs.source "$ikvmDir/ikvmstub.exe" + outputs.file assemblyDependenciesFile - doFirst { - assemblyDependenciesFile.withOutputStream { stdout -> - exec { - executable 'mono' - args '--debug' - args 'lib/Boo/booi.exe' - args 'printAssemblyDependencies.boo' - args inputs.files + doFirst { + assemblyDependenciesFile.withOutputStream { stdout -> + exec { + executable 'mono' + args '--debug' + args 'lib/Boo/booi.exe' + args 'printAssemblyDependencies.boo' + args inputs.files - standardOutput = stdout - } - } - } + standardOutput = stdout + } + } + } } apply from: assemblyDependenciesFile @@ -114,8 +114,8 @@ apply from: assemblyDependenciesFile // additional runtime dependencies not captured // as assembly references project(':ikvmc') { - dependencies { - 'default' project(':IKVM.Runtime') - } + dependencies { + 'default' project(':IKVM.Runtime') + } } diff --git a/bundles/Unity/build.gradle b/bundles/Unity/build.gradle index de8e956..65562ac 100755 --- a/bundles/Unity/build.gradle +++ b/bundles/Unity/build.gradle @@ -13,14 +13,14 @@ import System.Linq; import System.IO; static function Probe() { - LogParenthesizedValue(Path.GetDirectoryName(typeof(UnityEngine.Object).Assembly.Location)); + LogParenthesizedValue(Path.GetDirectoryName(typeof(UnityEngine.Object).Assembly.Location)); - LogParenthesizedValue(Application.unityVersion); + LogParenthesizedValue(Application.unityVersion); - var editorReferences = typeof(UnityEditor.EditorApplication).Assembly.GetReferencedAssemblies(); - //for (var editorRef in editorReferences) Log(editorRef); - var nrefactory = editorReferences.Single(function(assemblyName) { return assemblyName.Name == 'ICSharpCode.NRefactory'; }); - LogParenthesizedValue(nrefactory.Version); + var editorReferences = typeof(UnityEditor.EditorApplication).Assembly.GetReferencedAssemblies(); + //for (var editorRef in editorReferences) Log(editorRef); + var nrefactory = editorReferences.Single(function(assemblyName) { return assemblyName.Name == 'ICSharpCode.NRefactory'; }); + LogParenthesizedValue(nrefactory.Version); } static function LogParenthesizedValue(o) { @@ -103,4 +103,4 @@ project(':UnityEditor') { project(':ICSharpCode.NRefactory') { version = nrefactoryVersion -} \ No newline at end of file +} diff --git a/bundles/org.apache.ivy/build.gradle b/bundles/org.apache.ivy/build.gradle index 52c87e9..2e1cb79 100644 --- a/bundles/org.apache.ivy/build.gradle +++ b/bundles/org.apache.ivy/build.gradle @@ -4,23 +4,23 @@ group = 'kaizen' apply from: '../common.gradle' buildscript { - dependencies { - classpath 'kaizen:kaizen:0.2.4' - } - repositories { - ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } - } + dependencies { + classpath 'kaizen:kaizen:0.2.4' + } + repositories { + ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } + } } repositories { - ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } + ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } } def ikvmVersion = '7.1.4532.2' dependencies { - ext { - ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" } - } + ext { + ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" } + } } apply plugin: 'base' @@ -28,52 +28,52 @@ apply plugin: 'unity' apply plugin: 'kaizen-lib-client' configurations { - ivy - IKVM + ivy + IKVM } dependencies { - ivy "org.apache.ivy:ivy:$version" - IKVM "${ikvm('ikvmc')}" - ['IKVM.Runtime', 'IKVM.OpenJDK.XML.Parse'].each { - 'default' "${ikvm(it)}" - } + ivy "org.apache.ivy:ivy:$version" + IKVM "${ikvm('ikvmc')}" + ['IKVM.Runtime', 'IKVM.OpenJDK.XML.Parse'].each { + 'default' "${ikvm(it)}" + } } repositories { - mavenCentral() + mavenCentral() } task downloadJars(type: Copy) { - from configurations.ivy - into project.buildDir + from configurations.ivy + into project.buildDir } def outputFileName = "${project.name}.dll" def outputFile = "${project.buildDir}/${outputFileName}" task convert(type: Exec, dependsOn: [updateIKVM, downloadJars]) { - inputs.source configurations.ivy - outputs.file outputFile - executable rootProject.unity.mono.cli - args "lib/IKVM/ikvmc.exe" - args "-out:$outputFile" - args "-assembly:${project.name}" - args "-version:$version" - args inputs.files + inputs.source configurations.ivy + outputs.file outputFile + executable rootProject.unity.mono.cli + args "lib/IKVM/ikvmc.exe" + args "-out:$outputFile" + args "-assembly:${project.name}" + args "-version:$version" + args inputs.files } task zip(type: Zip, dependsOn: convert) { - from project.buildDir - include outputFileName + from project.buildDir + include outputFileName } artifacts { - 'default' zip + 'default' zip } uploadDefault { - repositories { - ivy { url repositoryForPublishing } - } + repositories { + ivy { url repositoryForPublishing } + } } diff --git a/samples/IvyResolve/build.gradle b/samples/IvyResolve/build.gradle index a4bef80..4d52d57 100644 --- a/samples/IvyResolve/build.gradle +++ b/samples/IvyResolve/build.gradle @@ -1,32 +1,32 @@ buildscript { - dependencies { - classpath 'kaizen:kaizen:0.2.4' - } - repositories { - ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } - } + dependencies { + classpath 'kaizen:kaizen:0.2.4' + } + repositories { + ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } + } } apply plugin: 'unity' apply plugin: 'vs2010' allprojects { - repositories { - ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } - } + repositories { + ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } + } - def ikvmVersion = '7.1.4532.2' - dependencies { - ext { - ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" } - } - } + def ikvmVersion = '7.1.4532.2' + dependencies { + ext { + ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" } + } + } } vs { - solutions { - "$rootProject.name" { - project(':IvyResolve') - } - } + solutions { + "$rootProject.name" { + project(':IvyResolve') + } + } }