Skip to content

Instantly share code, notes, and snippets.

@bigdaz
bigdaz / gradle_java5_java6.txt
Created January 28, 2012 19:54
Gradle with java5 and java6
➜ tmp java -version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-10M3527)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_30-161, mixed mode)
➜ tmp gr -i --refresh dependencies -g home sync
Starting Build
Settings evaluated using empty settings file.
Projects loaded. Root project using build file '/Users/daz/dev/gradlex/tmp/build.gradle'.
Included projects: [root project 'tmp']
Evaluating root project 'tmp' using build file '/Users/daz/dev/gradlex/tmp/build.gradle'.
➜ tmp java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
➜ tmp cat gradle.properties
org.gradle.daemon=true
org.gradle.java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
➜ tmp gr -i --refresh dependencies -s -g home sync
Note: the Gradle build daemon is an experimental feature.
As such, you may experience unexpected build failures. You may need to occasionally stop the daemon.
Total time: 1.183 secs
Could not stop org.gradle.cache.internal.DefaultMultiProcessSafePersistentIndexedCache@738bbae9.
java.lang.IllegalStateException: The cache directory incrementalCompile (/Users/daz/dev/gradlestuff/samples/native-binaries/multi-project/.gradle/1.11-20131208214431+0000/taskState/_lib_compileMainSharedLibraryMainCpp/incrementalCompile) has not been locked for this thread. File lock: true, owner: Thread[Task worker,5,]
at org.gradle.cache.internal.DefaultCacheAccess.getLock(DefaultCacheAccess.java:323)
at org.gradle.cache.internal.DefaultCacheAccess.access$200(DefaultCacheAccess.java:42)
at org.gradle.cache.internal.DefaultCacheAccess$UnitOfWorkFileAccess.writeFile(DefaultCacheAccess.java:346)
at org.gradle.cache.internal.DefaultMultiProcessSafePersistentIndexedCache.close(DefaultMultiProcessSafePersistentIndexedCache.java:76)
at org.gradle.internal.concurrent.CompositeStoppable$2.stop(CompositeStoppable.java:83)
at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStopp
/*
* Copyright 2015 the original author or 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
class JavaLanguageExternalDependencyResolutionIntegrationTest extends AbstractIntegrationSpec {
def "resolved classpath includes transitive api-scoped dependencies of local components"() {
given:
mavenRepo.module("org.gradle", "compileDep").publish()
mavenRepo.module("org.gradle", "apiDep").publish()
buildFile << """
plugins {
id 'jvm-component'
id 'java-lang'
tcagent2@ubuntu29:/home/tcagent2/agent/work/1c72cb73edd79150$ /home/tcagent2/gradle-dev/bin/gradle --info -g /home/tcagent2/gradle-home help
Starting Build
Evaluating root project 'buildSrc' using build file '/home/tcagent2/agent/work/1c72cb73edd79150/buildSrc/build.gradle'.
Cached resource https://repo.gradle.org/gradle/libs/org/ow2/asm/asm-all/5.1/asm-all-5.1.pom is up-to-date (lastModified: Fri May 20 08:40:21 UTC 2016).
Looking for artifact in cache: asm-parent.pom (org.ow2.asm:asm-parent:5.1)
FOUND!!!!! /home/tcagent2/.gradle/caches/modules-2/files-2.1/gradle.plugin.me.champeau.gradle/jmh-gradle-plugin/0.3.0/33f930601f06ec55cae50f7946fc3499ea23c1b5/jmh-gradle-plugin-0.3.0.jar
[Fatal Error] jmh-gradle-plugin-0.3.0.jar:2:1: Content is not allowed in prolog.
Cached resource https://repo1.maven.org/maven2/org/ow2/asm/asm-all/5.1/asm-all-5.1.pom is up-to-date (lastModified: Sat Mar 05 13:43:23 UTC 2016).
[Fatal Error] jmh-gradle-plugin-0.3.0.jar:2:1: Content is not allowed in prolog.
Stopped 0 compiler daemon
## First 4 tests for FLAKY builds on ubuntu22-agent1 (before HOST rebuild)
Note that it's the same 4 tests each time (one for each test thread)
[17:12:28][:core:integTest] maxParallelForks for ':core:integTest' is 4
[17:12:30][:core:integTest] org.gradle.NativeServicesIntegrationTest (4s)
[17:12:30][:core:integTest] org.gradle.groovy.scripts.StatementLabelsIntegrationTest (10s)
[17:12:30][:core:integTest] org.gradle.initialization.PropertiesLoaderIntegrationTest (39s)
[17:12:31][:core:integTest] org.gradle.testfixtures.ProjectBuilderIntegrationTest (11s)
[13:51:26][:core:integTest] maxParallelForks for ':core:integTest' is 4
14:22:54.544 [DEBUG] [org.gradle.internal.resource.transport.http.HttpClientHelper] Performing HTTP HEAD: http://www.systap.com/maven/releases/org/neo4j/shell/import-tools/3.0.3/import-tools-3.0.3.pom
14:22:54.687 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: default
14:22:54.694 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context
14:22:54.695 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {}->http://www.systap.com:80][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
14:22:54.706 [DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection leased: [id: 0][route: {}->http://www.systap.com:80][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
14:22:54.707 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] Opening connection {}->http://www.systap.com:80
14:22:54.710 [DEBUG] [org.apache.http.impl.conn.DefaultHttpClien
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:2.0.5.RELEASE")
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>custom-platform</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<dependencyManagement>