FAILURE: Build failed with an exception.
- What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> Could not find junit:junit:4.12.
Searched in the following locations:
http://localhost:8081/nexus/content/groups/public/junit/junit/4.12/junit-4.12.pom
http://localhost:8081/nexus/content/groups/public/junit/junit/4.12/junit-4.12.jar
Required by:
org.codehaus.sonar:example-java-maven:1.0-SNAPSHOT
# Find the sum of all the multiples of 3 or 5 below 1000. euler1 = (itertools.count() | select(lambda x: x * 3) | take_while(lambda x: x < 1000) | add) \ + (itertools.count() | select(lambda x: x * 5) | take_while(lambda x: x < 1000) | add) \ - (itertools.count() | select(lambda x: x * 15) | take_while(lambda x: x < 1000) | add) assert euler1 == 233168
# Find the sum of all the even-valued terms in Fibonacci which do not exceed four million. euler2 = fib() | where(lambda x: x % 2 == 0) | take_while(lambda x: x < 4000000) | add assert euler2 == 4613732
# Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. square = lambda x: x * x euler6 = square(itertools.count(1) | take(100) | add) - (itertools.count(1) | take(100) | select(square) | add) assert euler6 == 25164150