Skip to content

Commit

Permalink
migrate to GitHub artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
eadm committed May 11, 2021
1 parent f54c094 commit 68a2aef
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 115 deletions.
80 changes: 0 additions & 80 deletions bintray.gradle

This file was deleted.

5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ buildscript {
google()
jcenter()
maven { url "https://jitpack.io" }
mavenLocal()
}
dependencies {
classpath gradlePlugins.android
classpath gradlePlugins.androidMaven
classpath gradlePlugins.bintray
classpath gradlePlugins.kotlin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -24,7 +23,7 @@ allprojects {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://dl.bintray.com/eadm/ru.nobird.android" }
mavenLocal()
}
}

Expand Down
7 changes: 1 addition & 6 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ext.versions = [

androidGradlePlugin : '3.5.2',
kotlin : '1.3.41',
androidMaven : '2.1',
bintray : '1.8.4',

appCompat : '1.1.0',
ktx : '1.1.0',
Expand All @@ -23,10 +21,7 @@ ext.versions = [

ext.gradlePlugins = [
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
android : "com.android.tools.build:gradle:$versions.androidGradlePlugin",

androidMaven : "com.github.dcendents:android-maven-gradle-plugin:$versions.androidMaven",
bintray : "com.jfrog.bintray.gradle:gradle-bintray-plugin:$versions.bintray"
android : "com.android.tools.build:gradle:$versions.androidGradlePlugin"
]

ext.libraries = [
Expand Down
49 changes: 23 additions & 26 deletions ktlint-rules/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
apply plugin: 'kotlin'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'

dependencies {
implementation libraries.ktlint
Expand All @@ -23,28 +21,27 @@ sourceSets {
}
}

ext {
bintrayRepo = 'ru.nobird.android'
bintrayName = 'ru.nobird.android.ktlint'

publishedGroupId = 'ru.nobird.android.ktlint'
libraryName = 'ktlint-rules'
artifact = 'rules'

libraryDescription = 'Collection of common ktlint rules'

siteUrl = 'https://github.com/eadm/ktlint-rules'
gitUrl = 'https://github.com/eadm/ktlint-rules'

libraryVersion = versions.name

developerId = 'eadm'
developerName = 'Ruslan Davletshin'
developerEmail = '[email protected]'
group 'ru.nobird.android.ktlint'
version versions.name

publishing {
repositories {
maven {
name = "GitHub"
url = uri('https://maven.pkg.github.com/eadm/ktlint-rules')
credentials {
username = System.getenv("GITHUB_USER") ?: project.properties["GITHUB_USER"]
password = System.getenv("GITHUB_PERSONAL_ACCESS_TOKEN") ?: project.properties["GITHUB_PERSONAL_ACCESS_TOKEN"]
}
}
}

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
publications {
ktlintRules(MavenPublication) {
groupId 'ru.nobird.android.ktlint'
artifactId 'rules'
version versions.name
artifact("$buildDir/libs/ktlint-rules-${versions.name}.jar")
}
}
}

apply from: "../bintray.gradle"

0 comments on commit 68a2aef

Please sign in to comment.