-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,48 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: "com.vanniktech.maven.publish" | ||
|
||
gradle.ext.isCiServer = System.getenv().containsKey("CI") | ||
logger.warn("Running on CI: ${gradle.ext.isCiServer}") | ||
|
||
if (gradle.ext.isCiServer) { | ||
apply plugin: "com.vanniktech.maven.publish" | ||
mavenPublish { | ||
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
} | ||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
versionCode 2 | ||
versionName "3.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
compileSdkVersion 28 | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
versionCode 2 | ||
versionName "3.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility rootProject.ext.javaSourceCompatibility | ||
targetCompatibility rootProject.ext.javaTargetCompatibility | ||
} | ||
compileOptions { | ||
sourceCompatibility rootProject.ext.javaSourceCompatibility | ||
targetCompatibility rootProject.ext.javaTargetCompatibility | ||
} | ||
|
||
libraryVariants.all { | ||
it.generateBuildConfig.enabled = false | ||
} | ||
libraryVariants.all { | ||
it.generateBuildConfig.enabled = false | ||
} | ||
} | ||
|
||
dependencies { | ||
api rootProject.ext.recyclerView | ||
api rootProject.ext.recyclerView | ||
|
||
testImplementation 'junit:junit:4.12' | ||
testImplementation 'org.mockito:mockito-inline:2.21.0' | ||
testImplementation 'junit:junit:4.12' | ||
testImplementation 'org.mockito:mockito-inline:2.21.0' | ||
} | ||
|
||
// apply from: 'https://raw.github.com/sockeqwe/gradle-mvn-push/master/gradle-mvn-push.gradle' | ||
apply from: 'https://raw.githubusercontent.com/Tickaroo/findbugs-script/master/findbugs.gradle' | ||
|
||
|
||
mavenPublish { | ||
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
# | ||
POM_NAME = AdapterDelegates | ||
POM_ARTIFACT_ID = adapterdelegates3 | ||
POM_PACKAGING = aar | ||
POM_PACKAGING = aar |