Skip to content

Commit

Permalink
Update jdom dependency. Closes #98.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrengelman committed Nov 11, 2014
1 parent 519d2d4 commit c0fbcd9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v1.2.0
======

+ Re-organize some code to remove need for forcing the Gradle API ClassLoader to allow the `org.apache.tools.zip` package.
+ Upgrade JDOM library from 1.1 to 2.0.5 (change dependency from `jdom:jdom:1.1` to `org.jdom:jdom2:2.0.5`) ([Issue #98](https://github.com/johnrengelman/shadow/issues/98))

v1.1.2
======
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {

compile localGroovy()
compile gradleApi()
compile 'jdom:jdom:1.1'
compile 'org.jdom:jdom2:2.0.5'
compile 'org.ow2.asm:asm:4.1'
compile 'org.ow2.asm:asm-commons:4.1'
compile 'commons-io:commons-io:2.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ import com.github.jengelman.gradle.plugins.shadow.relocation.Relocator
import org.apache.tools.zip.ZipEntry
import org.apache.tools.zip.ZipOutputStream
import org.gradle.api.file.FileTreeElement
import org.jdom.*
import org.jdom.input.SAXBuilder
import org.jdom.output.Format
import org.jdom.output.XMLOutputter
import org.jdom2.Attribute
import org.jdom2.Content
import org.jdom2.Document
import org.jdom2.Element
import org.jdom2.JDOMException
import org.jdom2.input.SAXBuilder
import org.jdom2.output.Format
import org.jdom2.output.XMLOutputter
import org.xml.sax.EntityResolver
import org.xml.sax.InputSource
import org.xml.sax.SAXException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,11 @@ class TransformerSpec extends PluginSpecification {
String text = getJarFileContents(output, 'properties.xml')
assert text.replaceAll('\r\n', '\n') == '''|<?xml version="1.0" encoding="UTF-8"?>
|<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
|<properties version="1.0">
| <entry key="key1">val1</entry>
| <entry key="key2">val2</entry>
|</properties>
|
|'''.stripMargin()
|'''.stripMargin()
}

@Issue('SHADOW-82')
Expand Down

0 comments on commit c0fbcd9

Please sign in to comment.