Skip to content

Commit 2b53210

Browse files
committed
wip
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent 748bde3 commit 2b53210

2 files changed

Lines changed: 1 addition & 71 deletions

File tree

.github/workflows/java-release.yml

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -90,54 +90,7 @@ jobs:
9090
cp ../../native-libs/native-darwin-aarch64/libcss_inline.dylib src/main/resources/org/cssinline/native/darwin-aarch64/
9191
cp ../../native-libs/native-win32-x86_64/css_inline.dll src/main/resources/org/cssinline/native/win32-x86_64/
9292
93-
echo "=== Gradle version and Java info ==="
94-
gradle --version
95-
96-
echo "=== Source files ==="
97-
find src/main/java -name "*.java"
98-
99-
echo "=== Compile Java only first ==="
100-
gradle compileJava --stacktrace --info
101-
102-
echo "=== Check compiled classes ==="
103-
find build/classes -name "*.class" 2>/dev/null || echo "No compiled classes found!"
104-
105-
echo "=== Full build ==="
106-
gradle build --stacktrace --info
107-
108-
echo "=== After gradle build ==="
109-
ls -la build/libs/ || echo "No build/libs directory"
110-
111-
- name: Verify JAR contents
112-
working-directory: bindings/java
113-
run: |
114-
echo "=== Built JARs ==="
115-
ls -la build/libs/
116-
117-
# Get the main JAR (not sources or javadoc)
118-
MAIN_JAR=$(ls build/libs/css-inline-*-SNAPSHOT.jar | grep -v sources | grep -v javadoc)
119-
echo "=== Checking main JAR: $MAIN_JAR ==="
120-
121-
echo "=== JAR contents (first 30 lines) ==="
122-
jar tf "$MAIN_JAR" | head -30
123-
124-
echo "=== Looking for CssInline class ==="
125-
if jar tf "$MAIN_JAR" | grep -q "org/cssinline/CssInline.class"; then
126-
echo "✅ CssInline.class found"
127-
else
128-
echo "❌ CssInline.class NOT found!"
129-
echo "=== All .class files in JAR ==="
130-
jar tf "$MAIN_JAR" | grep "\.class$" || echo "No .class files found!"
131-
exit 1
132-
fi
133-
134-
echo "=== Looking for native libraries ==="
135-
jar tf "$MAIN_JAR" | grep -E "\.(so|dylib|dll)$" || echo "No native libraries found"
136-
137-
echo "=== Classes found in main JAR ==="
138-
jar tf "$MAIN_JAR" | grep "\.class$" | wc -l
139-
echo "=== Native libs found in main JAR ==="
140-
jar tf "$MAIN_JAR" | grep -E "\.(so|dylib|dll)$" | wc -l
93+
gradle build --info
14194
14295
- name: Upload JAR
14396
uses: actions/upload-artifact@v4
@@ -198,7 +151,6 @@ jobs:
198151
EOF
199152
200153
JAR_FILE=$(ls css-inline-*-SNAPSHOT.jar | grep -v sources | grep -v javadoc)
201-
echo "Using JAR: $JAR_FILE"
202154
203155
if [[ "$RUNNER_OS" == "Windows" ]]; then
204156
CLASSPATH_SEP=";"

bindings/java/build.gradle

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,6 @@ repositories {
1616
mavenCentral()
1717
}
1818

19-
jar {
20-
duplicatesStrategy = DuplicatesStrategy.INCLUDE
21-
22-
// Debug what's happening
23-
doFirst {
24-
println "=== JAR Task Debug ==="
25-
println "Classes dirs exist: ${sourceSets.main.output.classesDirs.every { it.exists() }}"
26-
println "Resources dir exists: ${sourceSets.main.output.resourcesDir?.exists()}"
27-
28-
sourceSets.main.output.classesDirs.each { dir ->
29-
if (dir.exists()) {
30-
println "Found classes in: ${dir}"
31-
dir.eachFileRecurse { file ->
32-
if (file.name.endsWith('.class')) {
33-
println " Class: ${file.name}"
34-
}
35-
}
36-
}
37-
}
38-
}
39-
}
40-
4119
dependencies {
4220
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
4321
implementation 'com.google.code.gson:gson:2.10.1'

0 commit comments

Comments
 (0)