1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
group = 'org.tmatesoft.sqljet'
version = '1.1.10'
project.ext {
target = '1.5'
release = true
}
apply from: 'build.pom.gradle'
buildscript {
apply from: 'build.defaults.gradle'
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
cacheDynamicVersionsFor 0, 'seconds'
}
}
repositories {
maven {
url project.ext.buildPluginRepositoryURL
}
}
dependencies { classpath 'org.tmatesoft.build:build:0.9.9' }
}
task wrapper(type: Wrapper) {}
def javaProjects() {
return subprojects.findAll { it.name != 'sqljet-distribution' }
}
def exampleProjects() {
return javaProjects().findAll { it.name.startsWith('sqljet-example-') }
}
allprojects {
apply plugin : 'base'
apply plugin : 'build'
}
configure(javaProjects()) {
apply plugin : 'java'
apply plugin : 'signing'
sourceCompatibility = target
targetCompatibility = target
configurations {
sources
javadocs
}
task sourcesJar(type: Jar) {
description = 'Builds Java Sources Jar'
from sourceSets.main.java.srcDirs
classifier = 'sources'
}
jar {
metaInf {
from rootProject.file('LICENSE.txt')
}
}
artifacts { sources sourcesJar }
}
configure(javaProjects() + rootProject) {
apply plugin : 'idea'
apply plugin : 'eclipse'
}
project(':sqljet') {
dependencies {
compile('org.antlr:antlr-runtime:3.4') {
exclude group: 'org.antlr', module: 'ST4'
exclude group: 'org.antlr', module: 'stringtemplate'
exclude group: 'antlr', module: 'antlr'
}
testCompile 'junit:junit:4.8.2'
testCompile 'org.easymock:easymock:2.4'
testCompile 'org.xerial:sqlite-jdbc:3.7.2'
}
}
project(':sqljet-browser') {
configurations { jnlp }
dependencies {
compile project(':sqljet')
compile 'org.netbeans.api:org-netbeans-swing-outline:RELEASE68'
}
}
project(':sqljet-vfs') {
dependencies {
compile project(':sqljet')
compile 'commons-vfs:commons-vfs:1.0'
testCompile 'junit:junit:4.8.2'
}
}
project(':sqljet-osgi') {
configurations { osgi }
dependencies { compile project(':sqljet') }
// sourcesJar.enabled = false
conf2ScopeMappings.mappings.remove(configurations.compile)
}
configure(exampleProjects()) {
dependencies { compile project(':sqljet') }
}
project(':sqljet-distribution') {
configurations {
binaries
sources
javadocs
examples
osgi
}
dependencies {
binaries project(path: ':sqljet', configuration: 'default')
sources project(path: ':sqljet', configuration: 'sources')
javadocs project(path: ':sqljet', configuration : 'javadocs')
binaries project(path: ':sqljet-browser', configuration: 'default')
sources project(path: ':sqljet-browser', configuration: 'sources')
osgi project(path: ':sqljet-osgi', configuration: 'osgi')
exampleProjects().each {
examples project(path: ':' + it.name, configuration: 'sources')
}
}
task build(type: Zip)
task buildSite(dependsOn: build)
build.dependsOn configurations.binaries
build.dependsOn configurations.javadocs
build.dependsOn configurations.sources
build.dependsOn configurations.examples
build.dependsOn configurations.osgi
buildSite.dependsOn configurations.osgi
buildSite.dependsOn configurations.binaries
}
|