Srg2Source | Applies source level refactors to java source code | Reflection library

 by   MinecraftForge Java Version: Current License: LGPL-2.1

kandi X-RAY | Srg2Source Summary

kandi X-RAY | Srg2Source Summary

Srg2Source is a Java library typically used in Programming Style, Reflection applications. Srg2Source has no vulnerabilities, it has build file available, it has a Weak Copyleft License and it has low support. However Srg2Source has 17 bugs. You can download it from GitHub.

A tool for renaming symbols (classes, methods, fields, parameters, and variables) in Java source code using .srg mappings. For porting, Minecraft, CraftBukkit, mods, plugins, etc.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Srg2Source has a low active ecosystem.
              It has 60 star(s) with 34 fork(s). There are 23 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 6 open issues and 16 have been closed. On average issues are closed in 100 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Srg2Source is current.

            kandi-Quality Quality

              OutlinedDot
              Srg2Source has 17 bugs (7 blocker, 0 critical, 7 major, 3 minor) and 210 code smells.

            kandi-Security Security

              Srg2Source has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Srg2Source code analysis shows 0 unresolved vulnerabilities.
              There are 4 security hotspots that need review.

            kandi-License License

              Srg2Source is licensed under the LGPL-2.1 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              Srg2Source releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              Srg2Source saves you 2191 person hours of effort in developing the same functionality from scratch.
              It has 5252 lines of code, 549 functions and 59 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Srg2Source and discovered the below as its top functions. This is intended to give you an instant insight into Srg2Source implemented functionality, and help decide if they suit your requirements.
            • Process a type declaration
            • Processes the package declaration
            • Processes an enum declaration
            • Processes the inner class instance
            • Process an anonymous class declaration
            • Processes a record declaration
            • Process a qualified name
            • Processes a method declaration
            • Process a lambda expression
            • Process a simple binding
            • Process an initializer node
            • Processes the synthetic annotation
            • Processes a MethodAnnotation
            • Process a single member annotation
            • Processes a MarkerAnnotation
            • Process a normal annotation
            • Processes a marker annotation
            • Adds a library
            • Opens an input stream for reading
            • Retrieves a structure from the given data
            • Creates a RangeEntry from the given specification
            • Returns output stream
            • Reads a MetaEntry from a string
            • Transforms a class
            • Filter out methods that have been called
            • Read the content of a file
            • The main entry point
            • Process an interface annotation
            • Entry point for testing
            • Main entry point
            • Get the next output stream
            Get all kandi verified functions for this library.

            Srg2Source Key Features

            No Key Features are available at this moment for Srg2Source.

            Srg2Source Examples and Code Snippets

            No Code Snippets are available at this moment for Srg2Source.

            Community Discussions

            QUESTION

            Problems running gradlew.bat and setting up Development Environment
            Asked 2020-Dec-11 at 03:43

            I've recently gotten into modding Minecraft 1.7.10, and I'm setting up my folders/environment. All I've done so far is as follows;

            1. Extracted the 1.7.10 src files from the forge website to the file I plan on modding in.
            2. made a system variable in my environmental variables called Path, which directs to my JDK.
            3. Ran gradlew.bat (failed)

            And this is where I failed. I have the main error I got straight from the cmd prompt, used cmd /k switch to keep it open listed below.

            FAILURE: Build failed with an exception.

            • What went wrong: A problem occurred configuring root project 'Modding Project'.

            Could not resolve all dependencies for configuration ':classpath'. Could not resolve org.eclipse.equinox:common:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:jobs:3.5.300-v20130429-1813 :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255 :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.equinox:preferences:3.5.100-v20130422-1538 > Failed to list versions for org.eclipse.equinox:common. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:preferences:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255 > Failed to list versions for org.eclipse.equinox:preferences. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:registry:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255 > Failed to list versions for org.eclipse.equinox:registry. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core.runtime:compatibility:[3.1.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914 > Failed to list versions for org.eclipse.core.runtime:compatibility. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:expressions:[3.1.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914 > Failed to list versions for org.eclipse.core:expressions. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:filesystem:[1.0.0,2.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914 > Failed to list versions for org.eclipse.core:filesystem. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse:osgi:[3.7.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse:osgi. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:common:[3.6.100,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:common. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:jobs:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.core:jobs. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:registry:[3.4.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:registry. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:preferences:[3.4.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:preferences. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:contenttype:[3.3.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.core:contenttype. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:app:[1.0.0,2.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:app. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml'. Received status code 501 from server: HTTPS Required

            • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

            BUILD FAILED

            Total time: 10.107 secs

            I can provide the --stacktrace, --info or the --debug on request.. first post so I'm not sure what people need beyond the error. Thanks anyways!

            Here is my build.gradle

            ...

            ANSWER

            Answered 2020-Dec-11 at 03:30

            So as far as I understood repo1.maven.org/maven2 does not support http anymore. That is problem because 1.7.10 is shipped with gradle wrapper v2.0. In this version http was hardcoded. So you need to add repository by yourself.

            Repository declaration looks like:

            Source https://stackoverflow.com/questions/65244986

            QUESTION

            I'm having issues with HTTP and HTTPS protocols
            Asked 2020-Feb-05 at 01:10

            I am brand spankin' new to coding. In fact, I've learned all I know about gradle through experimentation trying to make this stuff work. I am trying to build a .jar file from an old github file and for the past week, I've been trying in and out to get this thing to work and it always spits out errors. I am currently closer than ever to building this thing - except there's a problem.

            While I try to build my jar file, I am getting the error: Could not resolve all dependencies for configuration ':classpath'. And a lot of feedback, shown below.

            ...

            ANSWER

            Answered 2020-Feb-05 at 01:10

            You're right, the problem is due to the very old Gradle version used in the releases/1.12 branch of that repo.

            The version of Gradle used by the gradlew command is determined by the file gradle/wrapper/gradle-wrapper.properties. If you edit that file and change the distributionUrl property to use gradle-4.4-all.zip (like in develop branch of this repo) instead of gradle-2.0-all.zip, you should be able to at least build the project.

            Source https://stackoverflow.com/questions/60067406

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Srg2Source

            You can download it from GitHub.
            You can use Srg2Source like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Srg2Source component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/MinecraftForge/Srg2Source.git

          • CLI

            gh repo clone MinecraftForge/Srg2Source

          • sshUrl

            git@github.com:MinecraftForge/Srg2Source.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Reflection Libraries

            object-reflector

            by sebastianbergmann

            cglib

            by cglib

            reflection

            by doctrine

            avo

            by mmcloughlin

            rttr

            by rttrorg

            Try Top Libraries by MinecraftForge

            MinecraftForge

            by MinecraftForgeJava

            ForgeGradle

            by MinecraftForgeJava

            Documentation

            by MinecraftForgeHTML

            FML

            by MinecraftForgeJava

            MCPConfig

            by MinecraftForgeJava