You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework Maven plugin, add excludeConfig option, set useBuildArg to false on nix systems.
- Completely reworked Maven plugin (should fix many of previous issues
and inconsistencies between main and test builds).
- Added `classesDirectory`, `debug`, `fallback`, `verbose`, `sharedLibrary`,
`configurationFileDirectories`, `excludeConfig` and `jvmArgs` properties in
order to match those present in the Gradle plugin.
- `useArgFile` is now set to true by default only on Windows
- Added `excludeConfig` configuration option that allows skipping of
configuration files that are present in classpath `jar` s.
Copy file name to clipboardExpand all lines: docs/src/docs/asciidoc/index.adoc
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,13 @@ If you are interested in contributing, please refer to our https://github.com/gr
23
23
* Introduced the `metadataCopy` task.
24
24
* Introduced the concept of agent modes.
25
25
** Under the hood, the agent mode dictates what options are passed to the agent and how metadata produced by multiple runs get merged.
26
+
* Added `excludeConfig` configuration option that allows skipping of configuration files that are present in classpath `jar` s.
27
+
* `useArgFile` is now set to true by default only on Windows.
28
+
29
+
==== Maven plugin
30
+
* Completely reworked Maven plugin (should fix many of previous issues and inconsistencies between main and test builds).
31
+
* Added `classesDirectory`, `debug`, `fallback`, `verbose`, `sharedLibrary`, `configurationFileDirectories`, `excludeConfig` and `jvmArgs` properties in order to match those present in the Gradle plugin.
32
+
* `useArgFile` is now set to true by default only on Windows.
Copy file name to clipboardExpand all lines: native-gradle-plugin/src/main/java/org/graalvm/buildtools/gradle/internal/NativeImageCommandLineProvider.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2
+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
@@ -104,6 +104,12 @@ public List<String> asArguments() {
Copy file name to clipboardExpand all lines: native-maven-plugin/src/functionalTest/groovy/org/graalvm/buildtools/maven/MetadataRepositoryFunctionalTest.groovy
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
64
64
65
65
then:
66
66
buildSucceeded
67
-
outputContains "JVM reachability metadata repository is enabled, but no repository has been configured"
67
+
outputContains "GraalVM reachability metadata repository is enabled, but no repository has been configured"
68
68
outputContains "Reflection failed"
69
69
}
70
70
@@ -77,8 +77,8 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
77
77
78
78
then:
79
79
buildSucceeded
80
-
outputContains "The official JVM reachability metadata repository is not released yet. Only local repositories are supported"
81
-
outputContains "JVM reachability metadata repository is enabled, but no repository has been configured"
80
+
outputContains "The official GraalVM reachability metadata repository is not released yet. Only local repositories are supported"
81
+
outputContains "GraalVM reachability metadata repository is enabled, but no repository has been configured"
82
82
outputContains "Reflection failed"
83
83
}
84
84
@@ -94,10 +94,10 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
94
94
outputContains "Hello, from reflection!"
95
95
96
96
and: "it doesn't find a configuration directory for the current version"
97
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory not found. Trying latest version."
97
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory not found. Trying latest version."
98
98
99
99
and: "but it finds one thanks to the latest configuration field"
100
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory is org/graalvm/internal/library-with-reflection/1"
100
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory is org/graalvm/internal/library-with-reflection/1"
101
101
}
102
102
103
103
void"if the path doesn't exist it throws an error"() {
@@ -109,7 +109,7 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
109
109
110
110
then:
111
111
buildSucceeded
112
-
outputContains "JVM reachability metadata repository path does not exist"
112
+
outputContains "GraalVM reachability metadata repository path does not exist"
113
113
outputContains "Reflection failed"
114
114
}
115
115
@@ -134,7 +134,7 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
134
134
135
135
then:
136
136
buildSucceeded
137
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration is forced to version 2"
137
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration is forced to version 2"
138
138
outputContains "Reflection failed"
139
139
}
140
140
@@ -150,10 +150,10 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
150
150
outputContains "Hello, from reflection!"
151
151
152
152
and: "it doesn't find a configuration directory for the current version"
153
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory not found. Trying latest version."
153
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory not found. Trying latest version."
154
154
155
155
and: "but it finds one thanks to the latest configuration field"
156
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory is org/graalvm/internal/library-with-reflection/1"
156
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory is org/graalvm/internal/library-with-reflection/1"
157
157
}
158
158
159
159
void"it can download a remote repository"() {
@@ -170,10 +170,10 @@ class MetadataRepositoryFunctionalTest extends AbstractGraalVMMavenFunctionalTes
170
170
outputContains "Downloaded GraalVM reachability metadata repository from http://localhost:${localServerPort}/target/repo.zip"
171
171
172
172
and: "it doesn't find a configuration directory for the current version"
173
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory not found. Trying latest version."
173
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory not found. Trying latest version."
174
174
175
175
and: "but it finds one thanks to the latest configuration field"
176
-
outputContains "[jvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory is org/graalvm/internal/library-with-reflection/1"
176
+
outputContains "[graalvm reachability metadata repository for org.graalvm.internal:library-with-reflection:1.5]: Configuration directory is org/graalvm/internal/library-with-reflection/1"
177
177
}
178
178
179
179
void"when pointing to a missing URL, reflection fails"() {
0 commit comments