Skip to content

Commit

Permalink
0002954: Publish the symmetric-pro to maven. Include all web content so
Browse files Browse the repository at this point in the history
a gradle/maven project can easily embed SymmetricDS Pro
  • Loading branch information
chenson42 committed Jan 6, 2017
1 parent 90df458 commit 4b58765
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion symmetric-assemble/asciidoc.gradle
Expand Up @@ -69,7 +69,7 @@ task generateDocs(type: Copy) {

destinationDir = file("$buildDir/doc")
if (project.properties.containsKey('pro')) {
destinationDir = file(rootProject.buildDir.path + "/../../symmetric-pro/src/main/webapp/doc")
destinationDir = file(rootProject.buildDir.path + "/../../symmetric-pro/src/main/resources/VAADIN/doc")
}

into('html') {
Expand Down
11 changes: 4 additions & 7 deletions symmetric-assemble/build.gradle
Expand Up @@ -16,6 +16,10 @@ buildscript {
project.buildDir='target'
apply from: symAssembleDir + '/common.gradle'

if (project.properties.containsKey('pro')) {
install.enabled = false
uploadArchives.enabled = false
}

task generateJavadoc(type: Javadoc) {
destinationDir = new File(buildDir, 'doc/javadoc')
Expand All @@ -37,13 +41,6 @@ subprojects { subproject ->
}
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
}

project(":symmetric-csv") {
Expand Down
25 changes: 16 additions & 9 deletions symmetric-assemble/common.gradle
Expand Up @@ -17,7 +17,6 @@ dependencies {
allprojects {

apply plugin: 'eclipse-wtp'
apply plugin: 'maven-publish'

group = 'org.jumpmind.symmetric'

Expand Down Expand Up @@ -85,7 +84,22 @@ subprojects { subproject ->

sourceCompatibility=1.6
targetCompatibility=1.6


javadoc {
failOnError = false
}

install.enabled = !project.properties.containsKey('pro')
uploadArchives.enabled = !project.properties.containsKey('pro')


task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts { archives sourcesJar }

uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
Expand All @@ -95,13 +109,6 @@ subprojects { subproject ->
}
}

task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts { archives sourcesJar }

task deploy {
description 'Shortcut for Maven users'
dependsOn tasks.uploadArchives
Expand Down
Expand Up @@ -37,7 +37,6 @@
* any properties whose prefix matches any combination of supplied environment
* tokens. Any matches it finds, it removes the prefix and keeps a reference to
* the new property.
* <p/>
*/
public class EnvironmentSpecificProperties extends TypedProperties {

Expand Down
Expand Up @@ -154,7 +154,7 @@ public static String getIpAddress() {
}

/**
* This method will return the timezone in RFC822 format. </p> The format
* This method will return the timezone in RFC822 format. <p> The format
* ("-+HH:MM") has advantages over the older timezone codes ("AAA"). The
* difference of 5 hours from GMT is obvious with "-05:00" but only implied
* with "EST". There is no ambiguity saying "-06:00", but you don't know if
Expand Down

0 comments on commit 4b58765

Please sign in to comment.