v3.1.17a Fixed changelog field in upload task.

cloudor [08-18-19 - 14:00]
v3.1.17a Fixed changelog field in upload task.
Filename
addon-adr/build.gradle
addon-adr/changelog
diff --git a/addon-adr/build.gradle b/addon-adr/build.gradle
index e04a33a..bf9967d 100644
--- a/addon-adr/build.gradle
+++ b/addon-adr/build.gradle
@@ -4,7 +4,7 @@ plugins{

 ext.addonName = "ActionDurationReminder"
 ext.addonId = 1536
-ext.addonVersion = "3.1.17"
+ext.addonVersion = "3.1.17a"
 ext.addonCompatible = '5.1.5,5.0.5'

 distTar.enabled = false
@@ -37,7 +37,8 @@ task upload {
     dependsOn distZip
     doLast{
         def changelog = file('changelog').text
-        changelog = groovy.json.StringEscapeUtils.escapeJava(changelog)
+        changelog = groovy.json.StringEscapeUtils.escapeJava(changelog).replaceAll('\\\\r\\\\n',"\r\n")
+        println changelog
         def proc = ['curl',
             '-H', "\"x-api-token: ${project.property('com.esoui.apiToken')}\"",
             '-F', "id=${addonId}",
@@ -45,7 +46,7 @@ task upload {
             '-F', "compatible=$addonCompatible",
             '-F', "changelog=$changelog",
             '-F', "\"updatefile=@${distZip.archiveFile.get().asFile.absolutePath}\"",
-            'https://api.esoui.com/addons/updatetest']
+            'https://api.esoui.com/addons/update']
                    .execute()
         proc.consumeProcessOutput(System.out, System.err)
         proc.waitFor()
diff --git a/addon-adr/changelog b/addon-adr/changelog
index 3e7a690..8d66b6e 100644
--- a/addon-adr/changelog
+++ b/addon-adr/changelog
@@ -1,3 +1,6 @@
+v3.1.17a
+- Shared in esoui git repo.
+
 v3.1.17
 - Added a new action/effect matching policy i.e. Consuming Trap is now supported.