-
Notifications
You must be signed in to change notification settings - Fork 48
Separate SwiftKit into SwiftKitCore and SwiftKitFFM #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b393fcf
33617e4
3c12d2d
c531f01
55408f0
e64814d
3c3e0c2
9c594f4
b570ea9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ runs: | |
java-version: | | ||
24 | ||
21 | ||
19 | ||
cache: 'gradle' | ||
- name: Set JAVA_HOME_{N} | ||
shell: bash | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,10 @@ fi | |
|
||
# check if we can compile a plain Example file that uses the generated Java bindings that should be in the generated jar | ||
# The classpath MUST end with a * if it contains jar files, and must not if it directly contains class files. | ||
SWIFTKIT_CLASSPATH="$(pwd)/../../SwiftKit/build/libs/*" | ||
SWIFTKIT_CORE_CLASSPATH="$(pwd)/../../SwiftKitCore/build/libs/*" | ||
SWIFTKIT_FFM_CLASSPATH="$(pwd)/../../SwiftKitFFM/build/libs/*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, sorry you had to go through figuring that out, but now you know hah :) |
||
MYLIB_CLASSPATH="$(pwd)/build/libs/*" | ||
CLASSPATH="$(pwd)/:${SWIFTKIT_CLASSPATH}:${MYLIB_CLASSPATH}" | ||
CLASSPATH="$(pwd)/:${SWIFTKIT_FFM_CLASSPATH}:${SWIFTKIT_CORE_CLASSPATH}:${MYLIB_CLASSPATH}" | ||
echo "CLASSPATH = ${CLASSPATH}" | ||
|
||
$JAVAC -cp "${CLASSPATH}" Example.java | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ import groovy.json.JsonSlurper | |
import org.swift.swiftkit.gradle.BuildUtils | ||
|
||
import java.nio.file.* | ||
import kotlinx.serialization.json.* | ||
|
||
plugins { | ||
id("build-logic.java-application-conventions") | ||
|
@@ -148,7 +147,8 @@ tasks.clean { | |
} | ||
|
||
dependencies { | ||
implementation(project(':SwiftKit')) | ||
implementation(project(':SwiftKitCore')) | ||
implementation(project(':SwiftKitFFM')) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick, no need to fix up right now -- since FFM depends on Core we could just list the FFM dependency here, it'd resolve properly I think even with project dependencies |
||
|
||
testImplementation(platform("org.junit:junit-bom:5.10.0")) | ||
testImplementation("org.junit.jupiter:junit-jupiter") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that's nice actually to keep them separate rather than one big
:check