Giter Site home page Giter Site logo

Comments (5)

sebasira avatar sebasira commented on May 24, 2024 1

Thank you now it's working!!

It was due to the fact I had and older version of JaCoCo (v0.8.1) I update it to v0.8.6 and it was perfectly fine!

Reading the changelog, v0.8.2 was the first one in support Java 11

Thanks again! I'm closing this issue

from gitlab-ci-android.

jangrewe avatar jangrewe commented on May 24, 2024

I had something similar and got it to work properly with this in my Gradle file:

tasks.withType(Test) {
    jacoco.includeNoLocationClasses = true
    jacoco.excludes = ['jdk.internal.*']
}

Alternatively you could stick to the 29 tag of the Docker image, that still uses OpenJDK 8.

from gitlab-ci-android.

sebasira avatar sebasira commented on May 24, 2024

Thanks! I'll try that and let you know! I was using a previous version in the meanwhile

from gitlab-ci-android.

sebasira avatar sebasira commented on May 24, 2024

@jangrewe where should I put this?

tasks.withType(Test) {
    jacoco.includeNoLocationClasses = true
    jacoco.excludes = ['jdk.internal.*']
}

I've try placing it in my app level build.gradle outside all the inner blocks with no luck.

Ans instead of shooting in the dark I think you can point me out where. And yes, as temporary fix I'm sticking to tag 29.

Also, FWIW I'm using grade wrapper version 5.4.1-all. Maybe those lines are compatible with newer version and not mine.

Thanks!

from gitlab-ci-android.

jangrewe avatar jangrewe commented on May 24, 2024

I'm using Gradle 6.1.1

Make sure you also use a recent/maintained version of the jacoco plugin!

build.gradle:

buildscript {
    dependencies {
        classpath 'com.hiya:jacoco-android:0.2'
    }
}

app/build.gradle:

apply plugin: 'com.hiya.jacoco-android'

tasks.withType(Test) {
    jacoco.includeNoLocationClasses = true
    jacoco.excludes = ['jdk.internal.*']
}

from gitlab-ci-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.