Skip to content

Commit

Permalink
Fix minpom generation
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Sep 28, 2018
1 parent 7844dfd commit d924408
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ apply plugin: 'com.jfrog.bintray'

task generateMinPom {
doLast {
String pomHeader = """<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>${project.group}</groupId>
<artifactId>${project.name}</artifactId>
<version>${project.version}</version>
""".stripIndent(12)
String pomHeader = """|<?xml version="1.0" encoding="UTF-8"?>
|<project xmlns="http://maven.apache.org/POM/4.0.0"
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <modelVersion>4.0.0</modelVersion>
| <groupId>${project.group}</groupId>
| <artifactId>${project.name}</artifactId>
| <version>${project.version}</version>
|""".stripMargin('|')

def dependencyTemplate = { dep -> """
<dependency>
Expand Down

0 comments on commit d924408

Please sign in to comment.