1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 12:15:58 +02:00

[gradle] Commit gradle.properties with XML parser workaround

This commit is contained in:
Florian Schmaus 2024-09-26 13:25:49 +02:00
parent ea8e15d10f
commit 73c935cf95
3 changed files with 5 additions and 12 deletions

View file

@ -58,17 +58,6 @@ jobs:
run: | run: |
sdkmanager "platforms;android-21" sdkmanager "platforms;android-21"
# Workaround
- name: Create gradle.properties
run: |
cat <<-EOF > gradle.properties
# Workaround for https://github.com/CycloneDX/cyclonedx-gradle-plugin/issues/349
# suggested at https://docs.gradle.org/current/userguide/upgrading_version_8.html#xml_parsing_now_requires_recent_parsers
systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
EOF
# Testing # Testing
- name: Gradle Check - name: Gradle Check
run: ./gradlew check --stacktrace run: ./gradlew check --stacktrace

1
.gitignore vendored
View file

@ -12,7 +12,6 @@
.project .project
.settings .settings
.gradle .gradle
gradle.properties
build/ build/
core/build/ core/build/

5
gradle.properties Normal file
View file

@ -0,0 +1,5 @@
# Workaround for https://github.com/CycloneDX/cyclonedx-gradle-plugin/issues/349
# suggested at https://docs.gradle.org/current/userguide/upgrading_version_8.html#xml_parsing_now_requires_recent_parsers
systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl