64 lines
1.8 KiB
Groovy
64 lines
1.8 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven'
|
|
}
|
|
|
|
group 'com.microsoft.aspnet'
|
|
|
|
// If we're run from outside MSBuild, just assign a bogus dev version.
|
|
version project.findProperty('packageVersion') ?: "99.99.99-dev"
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation group: 'junit', name: 'junit', version: '4.12'
|
|
implementation "org.java-websocket:Java-WebSocket:1.3.8"
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
|
|
}
|
|
|
|
task sourceJar(type: Jar) {
|
|
classifier "sources"
|
|
from sourceSets.main.allJava
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier "javadoc"
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
task generatePOM {
|
|
pom {
|
|
project {
|
|
inceptionYear '2018'
|
|
description 'ASP.NET Core SignalR Client for Java applications'
|
|
url 'https://github.com/aspnet/SignalR'
|
|
name groupId + ':' + artifactId
|
|
licenses {
|
|
license {
|
|
name 'The Apache Software License, Version 2.0'
|
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
distribution 'repo'
|
|
}
|
|
}
|
|
scm {
|
|
connection 'scm:git:git://github.com/aspnet/SignalR.git'
|
|
developerConnection 'scm:git:git://github.com/aspnet/SignalR.git'
|
|
url 'http://github.com/aspnet/SignalR/tree/master'
|
|
}
|
|
developers {
|
|
developer {
|
|
id 'microsoft'
|
|
name 'Microsoft'
|
|
}
|
|
}
|
|
}
|
|
}.writeTo("${buildDir}/libs/signalr-${project.version}.pom")
|
|
}
|
|
|
|
task createPackage(dependsOn: [jar,sourceJar,javadocJar,generatePOM])
|