Skip to content

Commit

Permalink
simplify settings.gradle by tutteli's settings plugin
Browse files Browse the repository at this point in the history
- rename rootProject to arrow (this way we can benefit of a common
  prefix)
- apply the ch.tutteli.gradle.settings plugin
  - simplify includes with the include extension
  • Loading branch information
robstoll committed Mar 29, 2018
1 parent cac6d67 commit caa4e86
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 102 deletions.
76 changes: 76 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* Copyright (C) 2017 The Arrow Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

rootProject.name = "arrow"

buildscript {
gradle.ext.tutteli_plugins_version = '0.4.0'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "ch.tutteli:tutteli-gradle-settings:$gradle.ext.tutteli_plugins_version"
}
}

apply plugin: 'ch.tutteli.settings'

//noinspection GroovyAssignabilityCheck
include {
modules {

core {
_ 'annotations'
_ 'annotations-processor'
_ 'annotations-processor-test'
_ 'core'
_ 'data'
_ 'examples'
_ 'free'
_ 'instances'
_ 'kindedj'
_ 'mtl'
_ 'syntax'
_ 'test'
_ 'typeclasses'
_ 'validation'
}

effects {
_ 'effects'
_ 'effects-rx2'
_ 'effects-kotlinx-coroutines'
}

folder('recursion-schemes') {
_ 'recursion'
}

docs {
_ 'docs'
}

optics {
_ 'optics'
}

dagger {
_ 'dagger'
_ 'dagger-effects'
_ 'dagger-effects-kotlinx-coroutines'
}
}
}
102 changes: 0 additions & 102 deletions settings.gradle.kts

This file was deleted.

0 comments on commit caa4e86

Please sign in to comment.