aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/build.gradle
blob: d86746dd5e5e717d4e4704af78b32eb6c50d1715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
subprojects {
    apply plugin: 'java'

    repositories {
        mavenLocal()
        mavenCentral()
    }
}

task copyPlugins() {
    doLast {
        delete 'app/plugins'
        mkdir 'app/plugins'

        subprojects.each { p ->
            if (p.path.contains(":plugins/")) {
                System.out.println("Copying plugin from " + p.path);
                copy {
                    from p.projectDir.toString() + '/build/libs'
                    into 'app/plugins'
                    include '*.zip'
                }
            }
        }
    }
}
lain">2.1 jobs: buildJ8: docker: - image: circleci/openjdk:8-jdk <<: *gbsteps buildJ9: docker: - image: circleci/openjdk:9-jdk <<: *gbsteps buildJ11: docker: - image: circleci/openjdk:11-jdk <<: *gbsteps workflows: version: 2 build: jobs: - buildJ8: post-steps: - run: name: Upload coverage to Codecov command: bash <(curl -s https://codecov.io/bash) - run: name: Prepare Code Climate coverage reporter command: | curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter chmod +x ./cc-test-reporter ./cc-test-reporter before-build - run: name: Upload coverage to Code Climate command: | JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage ./build/target/reports/coverage/jacoco.xml --input-type jacoco ./cc-test-reporter upload-coverage when: on_success - run: name: Upload coverage to Codacy command: bash <(curl -Ls https://coverage.codacy.com/get.sh) report - "buildJ9" - "buildJ11"