48 lines
1.1 KiB
Groovy
48 lines
1.1 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'maven'
|
|
|
|
group = 'com.fazecast'
|
|
archivesBaseName = 'jSerialComm'
|
|
version = '1.2.2'
|
|
|
|
sourceCompatibility = 1.6
|
|
targetCompatibility = 1.6
|
|
javadoc.options.links("http://docs.oracle.com/javase/7/docs/api/")
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Implementation-Title': 'jSerialComm: Java Serial Communications Library',
|
|
'Implementation-Version': version,
|
|
'Implementation-Vendor': 'Fazecast, Inc.',
|
|
'Sealed': 'true'
|
|
}
|
|
}
|
|
|
|
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'
|
|
}
|
|
}
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier = 'javadoc'
|
|
from javadoc
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
artifacts {
|
|
archives jar, javadocJar, sourcesJar, testJar
|
|
}
|