Code Monkey home page Code Monkey logo

artifactural's Issues

getting matcher failed when version number includes spaces

I see why...

private static final Pattern URL_PATTERN = Pattern.compile(
"^(?<group>\\S+(?:/\\S+)*)/(?<name>\\S+)/(?<version>\\S+)/" +
"\\2-\\3(?:-(?<classifier>[^.\\s]+))?\\.(?<extension>\\S+)$");

well, you see... I'm using this in a gradle plugin I'm working on, and minecraft 1.14 pre releases id's are weird... among other things
in any case, version numbers (and the others) should be able to contain spaces and be valid...

Incompatibility with Gradle 8.7-RC1 due to removed field

In gradle/gradle@4604475 the versionParser field was removed from DefaultMavenArtifactRepository, which is used (reflectively) by this project here:

private static VersionParser getVersionParser(DefaultMavenLocalArtifactRepository maven) {
return ReflectionUtils.get(maven, "versionParser");
}

This causes the following error to occur:

Caused by: java.lang.IllegalStateException: Could not find 'versionParser'
	at net.minecraftforge.artifactural.gradle.ReflectionUtils.get(ReflectionUtils.java:110)
	at net.minecraftforge.artifactural.gradle.GradleRepositoryAdapter.getVersionParser(GradleRepositoryAdapter.java:149)
	at net.minecraftforge.artifactural.gradle.GradleRepositoryAdapter.add(GradleRepositoryAdapter.java:105)
	at net.minecraftforge.gradle.common.util.BaseRepo$Builder.attach(BaseRepo.java:122)
	at net.minecraftforge.gradle.userdev.DependencyManagementExtension.<init>(DependencyManagementExtension.java:43)
	at net.minecraftforge.gradle.userdev.DependencyManagementExtension_Decorated.<init>(Unknown Source)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:2097)
	at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:527)
	at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
	... 188 more

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.