Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

junit 4.12 and compilation issues #77

Open
Wouter1 opened this issue Jan 21, 2020 · 4 comments
Open

junit 4.12 and compilation issues #77

Wouter1 opened this issue Jan 21, 2020 · 4 comments

Comments

@Wouter1
Copy link

Wouter1 commented Jan 21, 2020

My first problem is that this package refers maven 4.9and 4.11

4.9:

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit-dep</artifactId>
			<version>[4.9,)</version>
		</dependency>

I don't see a direct link to 4.11 but I get compilation errors with my own code where maven tells me that there is version conflict with junit 4.12 that I use

FAIK 4.12 is the latest. Can this library be updated?

I tried to fix this myself but the library does not even build. When I try to do mvn install I immediately get a prompt for my PGP password. I have no clue why, your pom does not contain any ref to GPG but probably some parent does... Anyway PGP stuff on my machine is strictly prohibited for access. So the build fails there.

Can these issues be fixed? I'd like

  • that system-library uses the latest junit version (4.12 at this moment)
  • That the library builds (mvn install) without prompting for any passwords.
@reftel
Copy link

reftel commented Jan 27, 2020

We have a similar issue. The solution for us is to always add a

          <exclusion>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
          </exclusion>
        </exclusions>

around the dependency lines that pull in system-rules. An upgrade (or at least a shift to the new artifactId) would make things easier.

reftel added a commit to reftel/system-rules that referenced this issue Jan 27, 2020
@fgarbe
Copy link

fgarbe commented Apr 15, 2020

My IntelliJ can also not resolve dependencies when using system-rules: Could not find artifact junit:junit-dep:pom:4.9.1-SNAPSHOT

Why does <version>[4.9,)</version> resolve to a SNAPSHOT which is not available in mvn central?

reftel added a commit to reftel/system-rules that referenced this issue May 14, 2020
reftel added a commit to reftel/system-rules that referenced this issue May 14, 2020
reftel added a commit to reftel/system-rules that referenced this issue May 14, 2020
@sethjones
Copy link

I solved this issue by forcing a specific junit version, overriding the default provided with junit-dep.

@chetansharmagithub
Copy link

For gradle, I solved the issue by
replacing
testCompile 'com.github.stefanbirkner:system-rules:1.19.0'
with
testCompile ('com.github.stefanbirkner:system-rules:1.19.0') {
exclude group:"junit" , module:"junit-dep"
}

reftel added a commit to reftel/system-rules that referenced this issue Jan 28, 2022
reftel added a commit to reftel/system-rules that referenced this issue Jun 8, 2022
reftel added a commit to reftel/system-rules that referenced this issue Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants