Comments (8)
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.
@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.
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.
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.
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.
@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.
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.
@uwemaurer thanks.
It released on maven.
Is it resolved?
from twitter4j-v2.
Related Issues (20)
- support alt_text field HOT 1
- Inside the layout details are getting cut. That page is not responsive HOT 1
- how can I extract more than 20 tweets on user's timeline HOT 1
- Add pagination to lookup endpoints of RTs and Likes
- Add `sort_order` parameter to the search end points
- @MBonvoy HOT 1
- CountsExKt.countAll() has an incorrect endpoint HOT 2
- twitter4j.JSONException: No value for expanded_url HOT 8
- Oauth2 PKCE example? HOT 2
- Add media support HOT 5
- Add Mention and Hashtag Entities please. HOT 2
- Add variants to media HOT 1
- [Java] メソッド名が不正 HOT 2
- Some methods are not visible if you are using Java HOT 3
- Support for Direct Message lookup
- merge with Twitter4j 4.1.2
- Authentification doc HOT 1
- "getUserTweets" Method Return Exception HOT 1
- Blocked Users throws a JSON parse error if there's no blocked users
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter4j-v2.