|
| 1 | +plugins { |
| 2 | + id 'java-library' |
| 3 | + id 'maven-publish' |
| 4 | + id 'signing' |
| 5 | +} |
| 6 | + |
| 7 | +group = 'com.formkiq' |
| 8 | +version = '1.0' |
| 9 | + |
| 10 | +sourceCompatibility = JavaVersion.VERSION_1_8 |
| 11 | +targetCompatibility = JavaVersion.VERSION_1_8 |
| 12 | + |
| 13 | +repositories { |
| 14 | + jcenter() |
| 15 | +} |
| 16 | + |
| 17 | +dependencies { |
| 18 | + implementation group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.2.0' |
| 19 | + implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6' |
| 20 | + testImplementation group: 'junit', name: 'junit', version:'4.+' |
| 21 | +} |
| 22 | + |
| 23 | +java { |
| 24 | + withJavadocJar() |
| 25 | + withSourcesJar() |
| 26 | +} |
| 27 | + |
| 28 | +publishing { |
| 29 | + publications { |
| 30 | + mavenJava(MavenPublication) { |
| 31 | + artifactId = 'lambda-runtime-graalvm' |
| 32 | + from components.java |
| 33 | + |
| 34 | + pom { |
| 35 | + name = 'FormKiQ Lambda Runtime Graalvm' |
| 36 | + description = 'Lambda Runtime Graalvm' |
| 37 | + url = 'https://github.com/formkiq/lambda-runtime-graalvm' |
| 38 | + licenses { |
| 39 | + license { |
| 40 | + name = 'The Apache License, Version 2.0' |
| 41 | + url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' |
| 42 | + } |
| 43 | + } |
| 44 | + developers { |
| 45 | + developer { |
| 46 | + id = 'mfriesen' |
| 47 | + name = 'Mike Friesen' |
| 48 | + email = 'mike@formkiq.com' |
| 49 | + } |
| 50 | + } |
| 51 | + scm { |
| 52 | + connection = 'scm:git:git://github.com/formkiq/lambda-runtime-graalvm.git' |
| 53 | + developerConnection = 'scm:git:ssh://github.com/formkiq/lambda-runtime-graalvm.git' |
| 54 | + url = 'https://github.com/formkiq/lambda-runtime-graalvm.git' |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | + } |
| 59 | + repositories { |
| 60 | + maven { |
| 61 | + credentials { |
| 62 | + username project.repoUser |
| 63 | + password project.repoPassword |
| 64 | + } |
| 65 | + url "https://oss.sonatype.org/service/local/staging/deploy/maven2/" |
| 66 | + } |
| 67 | + } |
| 68 | +} |
| 69 | + |
| 70 | +javadoc { |
| 71 | + if(JavaVersion.current().isJava9Compatible()) { |
| 72 | + options.addBooleanOption('html5', true) |
| 73 | + } |
| 74 | +} |
| 75 | + |
| 76 | +artifacts { |
| 77 | + archives jar |
| 78 | + |
| 79 | + archives javadocJar |
| 80 | + archives sourcesJar |
| 81 | +} |
| 82 | + |
| 83 | +signing { |
| 84 | + sign publishing.publications.mavenJava |
| 85 | +} |
0 commit comments