Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsburrows committed Dec 26, 2020
2 parents d6a5a50 + cf981d6 commit 98960ab
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 82 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Also, for Android projects the license HTML file will be copied to `<project>/sr
buildscript {
repositories {
jcenter()
google()
}
dependencies {
Expand All @@ -36,6 +37,7 @@ Release versions are available in the [JFrog Bintray repository](https://jcenter
buildscript {
repositories {
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
google()
}
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ final class LicensePluginAndroidSpec extends Specification {
jcenter()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:${agpVersion}"
classpath files($classpathString)
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
Expand All @@ -88,7 +88,8 @@ final class LicensePluginAndroidSpec extends Specification {
'4.6',
'4.10',
'5.0',
'5.2'
'5.2',
'6.0'
],
[
'3.1.0',
Expand All @@ -107,13 +108,13 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
Expand All @@ -128,7 +129,7 @@ final class LicensePluginAndroidSpec extends Specification {
<html>
<head>
<style>
body { font-family: sans-serif }
body { font-family: sans-serif }
pre { background-color: #eeeeee; padding: 1em; white-space: pre-wrap; display: inline-block }
</style>
<title>Open source licenses</title>
Expand Down Expand Up @@ -164,24 +165,24 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
repositories {
maven {
url '${mavenRepoUrl}'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
}
dependencies {
// Handles duplicates
implementation 'com.android.support:appcompat-v7:26.1.0'
Expand Down Expand Up @@ -278,32 +279,32 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
repositories {
maven {
url '${mavenRepoUrl}'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
buildTypes {
debug {}
release {}
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
debugImplementation 'com.android.support:design:26.1.0'
releaseImplementation 'com.android.support:design:26.1.0'
}
Expand Down Expand Up @@ -397,44 +398,44 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
repositories {
maven {
url '${mavenRepoUrl}'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
buildTypes {
debug {}
release {}
}
flavorDimensions 'a', 'b'
productFlavors {
flavor1 { dimension 'a' }
flavor2 { dimension 'a' }
flavor3 { dimension 'b' }
flavor4 { dimension 'b' }
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
debugImplementation 'com.android.support:design:26.1.0'
releaseImplementation 'com.android.support:design:26.1.0'
flavor1Implementation 'com.android.support:support-v4:26.1.0'
flavor2Implementation 'com.android.support:support-v4:26.1.0'
flavor3Implementation 'com.android.support:support-annotations:26.1.0'
Expand Down Expand Up @@ -628,24 +629,24 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
repositories {
maven {
url '${mavenRepoUrl}'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
}
dependencies {
debugImplementation 'com.android.support:design:26.1.0'
debugImplementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.3'
Expand Down Expand Up @@ -748,24 +749,24 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
repositories {
maven {
url '${mavenRepoUrl}'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
}
dependencies {
implementation 'group:name4:1.0.0'
}
Expand Down Expand Up @@ -840,34 +841,34 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
allprojects {
repositories {
maven {
url '${mavenRepoUrl}'
}
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
}
dependencies {
api project(':subproject')
implementation 'group:name:1.0.0'
}
project(':subproject') {
apply plugin: 'java-library'
dependencies {
implementation 'com.android.support:design:26.1.0'
}
Expand Down Expand Up @@ -969,24 +970,24 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
}
licenseReport {
generateHtmlReport = true
generateJsonReport = true
Expand Down Expand Up @@ -1019,24 +1020,24 @@ final class LicensePluginAndroidSpec extends Specification {
classpath files($classpathString)
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.jaredsburrows.license'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'com.example'
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
}
licenseReport {
generateHtmlReport = false
generateJsonReport = false
Expand Down
Loading

0 comments on commit 98960ab

Please sign in to comment.