Skip to content

Commit

Permalink
Build optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
esocode committed Dec 30, 2019
1 parent f40991f commit daf3b4a
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 15 deletions.
20 changes: 10 additions & 10 deletions GewtStrings.launch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/gewt"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.i18n.tools.I18NSync"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="de.esoco.ewt.impl.gwt.GewtStrings&#13;&#10;-out src&#13;&#10;-createConstantsWithLookup"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="gewt"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/gewt"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.i18n.tools.I18NSync"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="de.esoco.ewt.impl.gwt.GewtStrings&#13;&#10;-out src&#13;&#10;-createConstantsWithLookup"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="gewt"/>
</launchConfiguration>
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ configurations.all {
if (targetProject != null) {
dependency.useTarget (targetProject, "prefer local project")
if (name.startsWith("compile")) // only log once
println "$project.name using local project $targetProject as dependency"
println "$project.name using local $targetProject as dependency"
}
}
}
Expand Down Expand Up @@ -110,3 +110,9 @@ bintray {
}
}
}

buildscript {
repositories { jcenter() }
dependencies { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+' }
}
apply from: 'publish.gradle'
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
98 changes: 98 additions & 0 deletions publish.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
// bintray buildscript dependency needs to be added to build.gradle!
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
apply plugin: 'maven-publish'

// ----------- Bintray Release -----------

bintray {
user = project.hasProperty('bintrayUser') ?
project.property('bintrayUser') :
System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ?
project.property('bintrayApiKey') :
System.getenv('BINTRAY_API_KEY')

publish = true
configurations = ['archives']

// Maven Central sync currently disabled, as registration for OSS Sonatype
// needs some bureaucracy
// publications = ['MavenCentral']

pkg {
repo = 'sdack'
name = project.name
version {
name = project.version
vcsTag = project.version
gpg {
sign = false
}
mavenCentralSync {
sync = false
user = project.hasProperty('ossUser') ?
project.property('ossUser') :
System.getenv('OSS_USER')
password = project.hasProperty('ossPassword') ?
project.property('ossPassword') :
System.getenv('OSS_PASSWORD')
}
}

}
}

// -------------- Maven Local ------------
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

// -------------- Maven POM --------------
/*
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
name "esoco GmbH"
email "[email protected]"
}
}
scm {
url "https://github.com/esoco/${project.name}"
}
}
publishing {
publications {
MavenCentral(MavenPublication) {
from components.java
afterEvaluate {
artifact sourcesJar
artifact javadocJar
groupId project.group
artifactId project.name
version project.version
pom.withXml {
def root = asNode()
root.appendNode('description', project.description)
root.appendNode('name', "${project.group}:${project.name}")
root.appendNode('url', "https://github.com/esoco/${project.name}")
root.children().last() + pomConfig
}
}
}
}
}
*/
4 changes: 1 addition & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ buildscript {

apply plugin: 'net.vivin.gradle-semantic-build-versioning'

['esoco-common'].each {
project -> if (new File("$rootDir/../$project").exists()) includeFlat project
}
includeFlat 'esoco-common'

0 comments on commit daf3b4a

Please sign in to comment.