-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41033 from ShammiL/testonly-any-dependency
Mark platform as any for testOnly platform libs
- Loading branch information
Showing
13 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
...sources/test-resources/command-outputs/unix/pack-project-with-test-only-platform-libs.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Compiling source | ||
sameera/myproject:0.1.0 | ||
|
||
Creating bala | ||
target/bala/sameera-myproject-any-0.1.0.bala |
5 changes: 5 additions & 0 deletions
5
...rces/test-resources/command-outputs/windows/pack-project-with-test-only-platform-libs.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Compiling source | ||
sameera/myproject:0.1.0 | ||
|
||
Creating bala | ||
target\bala\sameera-myproject-any-0.1.0.bala |
4 changes: 4 additions & 0 deletions
4
...erina-cli/src/test/resources/test-resources/projectWithTestOnlyJavaImports/Ballerina.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
org = "sameera" | ||
name = "myproject" | ||
version = "0.1.0" |
3 changes: 3 additions & 0 deletions
3
cli/ballerina-cli/src/test/resources/test-resources/projectWithTestOnlyJavaImports/main.bal
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
public function main() { | ||
} |
7 changes: 7 additions & 0 deletions
7
...-cli/src/test/resources/test-resources/projectWithTestOnlyJavaImports/tests/main-test.bal
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ballerina/jballerina.java; | ||
|
||
public function printInternal(handle receiver, handle strValue) = @java:Method { | ||
name: "println", | ||
'class: "java/io/PrintStream", | ||
paramTypes: ["java.lang.String"] | ||
} external; |
12 changes: 12 additions & 0 deletions
12
...rina-cli/src/test/resources/test-resources/projectWithTestOnlyPlatformLibs/Ballerina.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
org = "sameera" | ||
name = "myproject" | ||
version = "0.1.0" | ||
|
||
[platform.java11] | ||
graalvmCompatible = true | ||
|
||
[[platform.java11.dependency]] | ||
path = "./libs/one-1.0.0.jar" | ||
scope = "testOnly" | ||
graalvmCompatible = true |
Binary file added
BIN
+2.51 KB
...-cli/src/test/resources/test-resources/projectWithTestOnlyPlatformLibs/libs/one-1.0.0.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
cli/ballerina-cli/src/test/resources/test-resources/projectWithTestOnlyPlatformLibs/main.bal
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
public function main() { | ||
} |
10 changes: 10 additions & 0 deletions
10
...est/resources/test-resources/validGraalvmCompatibleProjectWithPlatformLibs/Ballerina.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
org = "sameera" | ||
name = "myproject" | ||
version = "0.1.0" | ||
|
||
[platform.java11] | ||
graalvmCompatible = true | ||
|
||
[[platform.java11.dependency]] | ||
path = "./libs/one-1.0.0.jar" |
Binary file added
BIN
+2.51 KB
...resources/test-resources/validGraalvmCompatibleProjectWithPlatformLibs/libs/one-1.0.0.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
.../src/test/resources/test-resources/validGraalvmCompatibleProjectWithPlatformLibs/main.bal
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
public function main() { | ||
} |
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