Update default to latest Graal version (#8)
This commit is contained in:
parent
d8118788a2
commit
7641b9a278
2 changed files with 7 additions and 7 deletions
|
@ -24,7 +24,7 @@ import org.gradle.api.provider.Provider;
|
|||
public class GraalExtension {
|
||||
|
||||
private static final String DEFAULT_DOWNLOAD_BASE_URL = "https://github.com/oracle/graal/releases/download/";
|
||||
private static final String DEFAULT_GRAAL_VERSION = "1.0.0-rc5";
|
||||
private static final String DEFAULT_GRAAL_VERSION = "1.0.0-rc6";
|
||||
|
||||
private Property<String> downloadBaseUrl;
|
||||
private Property<String> graalVersion;
|
||||
|
|
|
@ -20,12 +20,12 @@ import nebula.test.IntegrationSpec
|
|||
import nebula.test.functional.ExecutionResult
|
||||
|
||||
class GradleGraalPluginIntegrationSpec extends IntegrationSpec {
|
||||
def 'example test running a task'() {
|
||||
def 'test default version nativeImage'() {
|
||||
setup:
|
||||
new File(getProjectDir(), "src/main/java/com/palantir/test").mkdirs()
|
||||
new File(getProjectDir(), "src/main/java/com/palantir/test/Main.java") << '''
|
||||
package com.palantir.test;
|
||||
|
||||
|
||||
public final class Main {
|
||||
public static final void main(String[] args) {
|
||||
System.out.println("hello, world!");
|
||||
|
@ -36,11 +36,10 @@ class GradleGraalPluginIntegrationSpec extends IntegrationSpec {
|
|||
buildFile << '''
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'com.palantir.graal'
|
||||
|
||||
|
||||
graal {
|
||||
graalVersion '1.0.0-rc6'
|
||||
mainClass "com.palantir.test.Main"
|
||||
outputName "hello-world"
|
||||
mainClass 'com.palantir.test.Main'
|
||||
outputName 'hello-world'
|
||||
}
|
||||
'''
|
||||
|
||||
|
@ -48,6 +47,7 @@ class GradleGraalPluginIntegrationSpec extends IntegrationSpec {
|
|||
ExecutionResult result = runTasks('nativeImage')
|
||||
// capture output from Gradle runs
|
||||
println result.standardOutput
|
||||
println result.standardError
|
||||
File output = new File(getProjectDir(), "build/graal/hello-world");
|
||||
|
||||
then:
|
||||
|
|
Loading…
Reference in a new issue