2015-02-26 23:30:18 -08:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'maven'
|
2016-05-18 02:17:16 -07:00
|
|
|
apply plugin: 'osgi'
|
2015-02-26 23:30:18 -08:00
|
|
|
|
2015-03-17 10:18:08 -07:00
|
|
|
group = 'com.fazecast'
|
2015-02-26 23:30:18 -08:00
|
|
|
archivesBaseName = 'jSerialComm'
|
2016-12-05 12:25:23 -08:00
|
|
|
version = '1.4.0'
|
2015-02-26 23:30:18 -08:00
|
|
|
|
|
|
|
sourceCompatibility = 1.6
|
|
|
|
targetCompatibility = 1.6
|
2015-03-09 13:51:09 -07:00
|
|
|
javadoc.options.links("http://docs.oracle.com/javase/7/docs/api/")
|
2015-02-26 23:30:18 -08:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
2016-12-05 12:25:23 -08:00
|
|
|
instruction 'Bundle-Description', 'jSerialComm: Java Serial Communications Library'
|
|
|
|
instruction 'Bundle-Vendor', 'Fazecast, Inc.'
|
|
|
|
attributes 'Implementation-Title': 'jSerialComm: Java Serial Communications Library',
|
|
|
|
'Implementation-Version': version,
|
|
|
|
'Implementation-Vendor': 'Fazecast, Inc.',
|
|
|
|
'Sealed': 'true'
|
2015-02-26 23:30:18 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-27 13:39:45 -08:00
|
|
|
task testJar(type: Jar) {
|
|
|
|
classifier = 'test'
|
|
|
|
from sourceSets.test.output, sourceSets.main.output
|
|
|
|
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': 'com.fazecast.jSerialComm.SerialPortTest',
|
|
|
|
'Implementation-Title': 'jSerialComm: Java Serial Communications Library',
|
|
|
|
'Implementation-Version': version,
|
|
|
|
'Implementation-Vendor': 'Fazecast, Inc.',
|
|
|
|
'Sealed': 'true'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-26 23:30:18 -08:00
|
|
|
task javadocJar(type: Jar) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
2015-02-27 13:39:45 -08:00
|
|
|
archives jar, javadocJar, sourcesJar, testJar
|
2015-02-26 23:30:18 -08:00
|
|
|
}
|