Wednesday, January 5, 2011

How to build QuickBinder using Gradle



// build.gradle
apply plugin: 'java'
apply plugin: 'idea'

sourceCompatibility = 1.5
// version = '1.0'
jar.baseName = 'QuickBinder-ss'

// QuickBinder variables
qbVersion = 1.1
qbBuildDate = new Date()
qbChanges = 'Removed splash screen'

defaultTasks 'clean', 'build'

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
}

jar {
manifest {
attributes 'Manifest-Version': 1.0,
'Created-By': 'David Chang',
'Created-Date': qbBuildDate,
'QuickBinder-Version': qbVersion,
'QuickBinder-Change-Log': qbChanges,
'Main-Class': 'com.rci.edge.quickbinder.impl.QuickBinder'
}

from sourceSets.main.classes
exclude('com/rci/edge/quickbinder/logger/QuickSplashscreen*')
}

No comments: