Skip to content

Commit

Permalink
Upgrade sample app to Kotlin 1.6.10 and ensure it builds on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joshafeinberg committed Feb 16, 2022
1 parent 897934e commit 00915a6
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sample_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build the sample app and ensure that all functionality works.

name: Build sample app

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
sample-app:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up our JDK environment
uses: actions/[email protected]
with:
java-version: 1.8
- name: Build sample
run: |
./gradlew :affectedmoduledetector:publishToMavenLocal
cd sample
./gradlew build
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AffectedModuleDetectorIntegrationTest {
| }
| dependencies {
| classpath "com.android.tools.build:gradle:4.1.0"
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10"
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
| }
|}
|plugins {
Expand Down
2 changes: 2 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.dropbox.sample.Dependencies
buildscript {
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
Expand Down Expand Up @@ -36,6 +37,7 @@ affectedModuleDetector {
allprojects {
repositories {
google()
mavenCentral()
}
}

Expand Down
5 changes: 3 additions & 2 deletions sample/buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
* Copyright (c) 2020, Dropbox, Inc. All rights reserved.
*/
plugins {
kotlin("jvm") version "1.4.10"
kotlin("jvm") version "1.6.10"
`java-gradle-plugin`
}

repositories {
google()
mavenCentral()
mavenLocal()
}

dependencies {
implementation("com.dropbox.affectedmoduledetector:affectedmoduledetector:0.1.2-SNAPSHOT")
implementation("com.dropbox.affectedmoduledetector:affectedmoduledetector:0.1.4-SNAPSHOT")
testImplementation("junit:junit:4.13.1")
testImplementation("com.nhaarman:mockito-kotlin:1.5.0")
testImplementation("com.google.truth:truth:1.0.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.dropbox.sample

object Dependencies {
private object Versions {
const val KOTLIN_VERSION = "1.4.10"
const val KOTLIN_VERSION = "1.6.10"
}

object Libs {
Expand Down

0 comments on commit 00915a6

Please sign in to comment.