Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish snapshot

on:
push:
branches: [ master, feature/* ]
branches: [ master, feature/*, kotlin-* ]
pull_request:
branches: [ master ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: PR

on:
pull_request:
Expand All @@ -7,13 +7,25 @@ on:
- '*.md'

jobs:
test:
ktlint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Ktlint
uses: "vroy/gha-kotlin-linter@v1"
test:
needs: ktlint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2

- name: Test
run: ./gradlew jvmTest
run: ./gradlew allTest

- name: Archive redux-kotlin Test Reports
uses: actions/upload-artifact@v1
Expand Down
41 changes: 0 additions & 41 deletions build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

buildscript {
repositories {
google()
mavenCentral()
maven("https://dl.bintray.com/jetbrains/kotlin-native-dependencies")
maven("https://plugins.gradle.org/m2/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
jcenter()
}

dependencies {
classpath(Plugins.kotlin)
classpath(Plugins.dokka)
classpath(Plugins.android)
classpath(Plugins.atomicFu)
}
}

plugins {
id("de.fayard.buildSrcVersions") version "0.4.2"
}

allprojects {
repositories {
google()
jcenter()
maven("https://kotlin.bintray.com/kotlinx")
maven("https://oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
}

group = project.properties["GROUP"]!!
version = project.properties["VERSION_NAME"]!!
if (hasProperty("SNAPSHOT") || System.getenv("SNAPSHOT") != null) {
version = "$version-SNAPSHOT"
}
}
Loading