tictactoe icon indicating copy to clipboard operation
tictactoe copied to clipboard

Error while doing gradle build..... need help

Open guthedar opened this issue 7 years ago • 2 comments

Tried alot googling but no luck. If u can please help. Below is the error.

  • What went wrong: A problem occurred evaluating root project 'tictactoe'.

Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin'] Could not create task ':dependencyManagement'. > Could not create task of type 'DependencyManagementReportTask'. > Unable to determine constructor argument #1: missing parameter of interface org.gradle.logging.StyledTextOutputFactory, or no service of type interface org.gradle.logging.StyledTextOutputFactory

guthedar avatar Feb 10 '19 18:02 guthedar

bump. also encountering the exact same issue...

bzlister avatar Apr 30 '20 23:04 bzlister

Just remake the project into Maven.

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.2.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.example</groupId>
	<artifactId>spring-boot</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>spring-boot</name>
	<description>Demo project for Spring Boot</description>

	<properties>
		<java.version>1.8</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-jpa</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-security</artifactId>
		</dependency>

		<dependency>
			<groupId>org.postgresql</groupId>
			<artifactId>postgresql</artifactId>
			<version>42.2.12</version>
		</dependency>

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>1.4.192</version>
		</dependency>

		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
		</dependency>

		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>16.0.1</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>
</project>

Then to the project root directory, add a lib folder containing the following jars which you can download online: google-collections-1.0.jar jta-1.0.1B.jar

bzlister avatar May 02 '20 17:05 bzlister