Git Product home page Git Product logo

Comments (8)

uwemaurer avatar uwemaurer commented on August 21, 2024 1

It is already fixed by this commit: 4f9a357

but there is no release after this commit. So just making a new release should be enough.

I had a look and ran ./gradlew twitter4j-v2-support:generateMetadataFileForMavenPublication, it produces a file twitter4j-v2-support/build/publications/maven/module.json. This file contains "org.gradle.jvm.version": 8, which is good.

from twitter4j-v2.

uwemaurer avatar uwemaurer commented on August 21, 2024 1

@takke thank you!

I can confirm it is resolved.
the module information has org.gradle.jvm.version: 8 now:
https://repo1.maven.org/maven2/io/github/takke/jp.takke.twitter4j-v2/1.4.2/jp.takke.twitter4j-v2-1.4.2.module

I also tested it in my project (after removing my earlier workaround)

from twitter4j-v2.

torbenw avatar torbenw commented on August 21, 2024

I think you tried to set it to Java 8 last week, but it seems more changes are needed.

Maybe you have to do what's in the accepted answer here, but I've never worked with Kotlin, so I don't know for sure if this is the same problem.

from twitter4j-v2.

torbenw avatar torbenw commented on August 21, 2024

I can use this library with Java 11 by adding this to my build.gradle:

repositories {
  maven {
    url ...
    metadataSources {
      mavenPom()
      artifact()
      ignoreGradleMetadataRedirection()
    }
  }
}

from twitter4j-v2.

uwemaurer avatar uwemaurer commented on August 21, 2024

for me it worked with fixing the metadata like this:
https://docs.gradle.org/current/userguide/component_metadata_rules.html#basics_of_writing_a_component_metadata_rule

@CacheableRule
abstract class TargetJvmVersionRule implements ComponentMetadataRule {
    final Integer jvmVersion
    @Inject TargetJvmVersionRule(Integer jvmVersion) {
        this.jvmVersion = jvmVersion
    }

    @Inject abstract ObjectFactory getObjects()

    void execute(ComponentMetadataContext context) {
          context.details.withVariant("apiElements") {
            attributes {
                attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, jvmVersion)
            }
        }
        context.details.withVariant("runtimeElements") {
            attributes {
                attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, jvmVersion)
            }
        }
    }
}

dependencies {
 components {
        withModule("io.github.takke:jp.takke.twitter4j-v2", TargetJvmVersionRule) {
            params(11)
        }
    }
    implementation "io.github.takke:jp.takke.twitter4j-v2:1.4.1"
}

would be great to fix it in the library and make a new release

from twitter4j-v2.

uwemaurer avatar uwemaurer commented on August 21, 2024

@takke Could you make a new release with the correct JVM target version? Your library will probably get a lot more usage now since twitter stopped supporting the V1 API for creating tweets

from twitter4j-v2.

takke avatar takke commented on August 21, 2024

Please someone send me a PR.

It is hard for me to create an environment to reproduce.

I don't want to spend time on Twitter because all my apps that can use the v2 API properly have been suspended.

from twitter4j-v2.

takke avatar takke commented on August 21, 2024

@uwemaurer thanks.

It released on maven.

Is it resolved?

from twitter4j-v2.

Related Issues (20)

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.