|
| 1 | +group = 'com.kirich1409.android-notification-dsl' |
| 2 | +version = rootProject.ext.androidNotificationDslVersion |
| 3 | + |
| 4 | +apply plugin: 'com.jfrog.bintray' |
| 5 | +apply plugin: 'maven-publish' |
| 6 | + |
| 7 | +def siteUrl = 'https://github.com/kirich1409/Android-Notification-DSL' |
| 8 | +def gitRepoUrl = 'https://github.com/kirich1409/Android-Notification-DSL.git' |
| 9 | + |
| 10 | +tasks.register('sourceJar', Jar) { |
| 11 | + from android.sourceSets.main.java.srcDirs |
| 12 | + classifier "sources" |
| 13 | +} |
| 14 | + |
| 15 | +afterEvaluate { |
| 16 | + publishing { |
| 17 | + publications { |
| 18 | + releaseAar(MavenPublication) { |
| 19 | + from components.release |
| 20 | + artifact(sourceJar) |
| 21 | + |
| 22 | + groupId = 'com.kirich1409.android-notification-dsl' |
| 23 | + artifactId = 'extensions' |
| 24 | + version = project.version |
| 25 | + |
| 26 | + pom { |
| 27 | + name = 'Android Notifcation DSL' |
| 28 | + description = 'API for declarative Notification creation' |
| 29 | + url = siteUrl |
| 30 | + licenses { |
| 31 | + license { |
| 32 | + name = 'The Apache License, Version 2.0' |
| 33 | + url = "http://www.apache.org/licenses/LICENSE-2.0.txt" |
| 34 | + } |
| 35 | + } |
| 36 | + developers { |
| 37 | + developer { |
| 38 | + id = 'kirich1409' |
| 39 | + name = 'Kirill Rozov' |
| 40 | + email = 'krl.rozov@gmail.com' |
| 41 | + } |
| 42 | + } |
| 43 | + scm { |
| 44 | + url = gitRepoUrl |
| 45 | + } |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | + } |
| 50 | +} |
| 51 | + |
| 52 | +bintray { |
| 53 | + user = project.hasProperty('user') ? project.property('user') : System.getenv('BINTRAY_USER') |
| 54 | + key = project.hasProperty('apiKey') ? project.property('apiKey') : System.getenv('BINTRAY_API_KEY') |
| 55 | + |
| 56 | + publications = ["releaseAar"] |
| 57 | + |
| 58 | + pkg { |
| 59 | + repo = 'maven' |
| 60 | + name = 'android-notification-dsl-extensions' |
| 61 | + desc = 'API for declarative Notification creation' |
| 62 | + websiteUrl = siteUrl |
| 63 | + issueTrackerUrl = 'https://github.com/kirich1409/Android-Notification-DSL/issues' |
| 64 | + vcsUrl = gitRepoUrl |
| 65 | + licenses = ['Apache-2.0'] |
| 66 | + labels = ['android', 'notification', 'kotlin dsl', 'declarative'] |
| 67 | +// publish true |
| 68 | + publicDownloadNumbers = true |
| 69 | + |
| 70 | + githubRepo = 'kirich1409/Android-Notification-DSL' //Optional Github repository |
| 71 | + githubReleaseNotesFile = 'README.md' //Optional Github readme file |
| 72 | + |
| 73 | + version { |
| 74 | + name = project.version |
| 75 | + desc = 'API for declarative Notification creation' |
| 76 | + released = new Date() |
| 77 | + } |
| 78 | + } |
| 79 | +} |
| 80 | + |
0 commit comments