1+ plugins {
2+ id 'com.gradle.plugin-publish' version '0.9.7'
3+ id 'io.codearte.nexus-staging' version '0.8.0'
4+ id 'maven'
5+ id 'signing'
6+ }
7+
8+ group = "io.github.astinchoi"
9+ version = "0.1.0"
10+
11+ repositories {
12+ mavenCentral()
13+ }
14+
15+ dependencies {
16+ compile gradleApi()
17+
18+ testCompile 'junit:junit:4.12'
19+ }
20+
21+ task wrapper(type: Wrapper) {
22+ gradleVersion = '3.5'
23+ }
24+
25+ task javadocJar(type: Jar) {
26+ classifier = 'javadoc'
27+ from javadoc
28+ }
29+
30+ task sourcesJar(type: Jar) {
31+ classifier = 'sources'
32+ from sourceSets.main.allSource
33+ }
34+
35+ artifacts {
36+ archives javadocJar, sourcesJar
37+ }
38+
39+ signing {
40+ sign configurations.archives
41+ }
42+
43+ uploadArchives {
44+ repositories {
45+ mavenDeployer {
46+ beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
47+
48+ repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
49+ authentication(userName: ossrhUsername, password: ossrhPassword)
50+ }
51+
52+ snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
53+ authentication(userName: ossrhUsername, password: ossrhPassword)
54+ }
55+
56+ pom.project {
57+ name 'Akamai-EdgeAuth-Java'
58+ packaging 'jar'
59+ description 'Akamai Edge Authorization Token for Java'
60+ url 'https://github.com/AstinCHOI/Akamai-EdgeAuth-Java'
61+
62+ scm {
63+ connection 'scm:git@github.com:AstinCHOI/Akamai-EdgeAuth-Java.git'
64+ developerConnection 'scm:git@github.com:AstinCHOI/Akamai-EdgeAuth-Java.git'
65+ url 'scm:git@github.com:AstinCHOI/Akamai-EdgeAuth-Java.git'
66+ }
67+
68+ licenses {
69+ license {
70+ name 'The Apache License, Version 2.0'
71+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
72+ }
73+ }
74+
75+ developers {
76+ developer {
77+ id 'astin'
78+ name 'Astin Choi'
79+ }
80+ }
81+ }
82+ }
83+ }
84+ }
85+
86+ nexusStaging {
87+ packageGroup = "io.github.astinchoi"
88+ }
89+
90+ pluginBundle {
91+ website = 'https://github.com/AstinCHOI/Akamai-EdgeAuth-Java'
92+ vcsUrl = 'https://github.com/AstinCHOI/Akamai-EdgeAuth-Java'
93+ description = 'Akamai Authorization Token for Java'
94+ tags = ['akamai', 'akamai-open', 'authorization', 'token', 'edgeauth', 'signed-url', 'java']
95+
96+ plugins {
97+ edgeauthPlugin {
98+ id = 'io.github.astinchoi.edgeauth'
99+ displayName = 'Akamai Edge Authorization Token for Java'
100+ }
101+ }
102+ }
0 commit comments