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
let widget = await createWidget(); | |
// Check where the script is running | |
if (config.runsInWidget) { | |
// Runs inside a widget so add it to the homescreen widget | |
Script.setWidget(widget); | |
} else { | |
// Show the large widget inside the app | |
widget.presentLarge(); | |
} |
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
println 'from remote' |
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
tasks.withType(Test).configureEach { Test testTask -> | |
def nonInputs = new InconsequentialSystemProperty() | |
testTask.jvmArgumentProviders.add(nonInputs) | |
def nonInputSystemProperty = { String key, value -> | |
nonInputs.props.put(key, value) | |
} | |
testTask.extensions.extraProperties.set("nonInputSystemProperty", nonInputSystemProperty) |
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
buildscript { | |
repositories { | |
maven { url 'https://plugins.gradle.org/m2/' } | |
} | |
dependencies { | |
classpath 'com.gradle:build-scan-plugin:2.1' | |
} | |
} | |
apply plugin: 'com.gradle.build-scan' |
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' | |
group "org.sample" | |
version "1.0" | |
dependencies { | |
compile "org.sample:included-Sub1:1.0" | |
compile "org.sample:included-Sub2:1.0" | |
} | |
gradle.buildFinished { |
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 org.gradle.api.JavaVersion; | |
import org.gradle.api.Plugin; | |
import org.gradle.api.Project; | |
import org.gradle.api.plugins.JavaPlugin; | |
import org.gradle.api.plugins.JavaPluginConvention; | |
import org.gradle.api.provider.Property; | |
import java.util.concurrent.Callable; | |
public class AcmePlugin implements Plugin<Project> { |
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
please provide output of | |
- Running “time curl -svo /dev/null https://downloads.gradle.org/distributions/gradle-3.5-all.zip” | |
- Running “time curl -svo /dev/null https://d2ueg53gsd9z3m.cloudfront.net/distributions/gradle-3.5-all.zip” | |
- Running “mtr --report https://downloads.gradle.org/distributions/” | |
- http://gradle.org/cdn-cgi/trace |
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
buildScan.buildFinished { result -> | |
if(result.failure){ | |
if(result.failure instanceof org.gradle.internal.exceptions.LocationAwareException){ | |
if(result.failure.reportableCauses.size() >= 1) { | |
def reportMessage = result.failure.reportableCauses[0].message | |
buildScan.link("Create Gradle Forum Topic", createForumLink(reportMessage)) | |
} | |
} | |
} | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); |
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.frege.java; | |
public class StaticHello { | |
public static String helloJava() { | |
return "hello from java"; | |
} | |
} |
NewerOlder