Plugin [id: ‘com.jfrog.artifactory’, version: ‘4.33.1’] was not found in any of the following sources:

So, there is a backend that was written before, but, for some reasons can’t be launched (I tried using IntelliJ and also from terminal.) gradle.properties are set up correctly, but I get this error every time:

Build file 'C:UsersDesktopLand-Backendbuild.gradle' line: 5

Plugin [id: 'com.jfrog.artifactory', version: '4.33.1'] was not found in any of the following sources:

* Try:

> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
> BUILD FAILED in 6s

I am using Windows – any Ideas on this?

I tried deleting .gradle files and try to run it, but didn’t work

I think that the problem might be because windows automatically conttects some files after the boot of IntelliJ.

I tried deleting .gradle and .idea files after all dependencies were correct, but it still can’t connect to the artifactory.

Here is my build.gradle file:
import org.gradle.api.services.BuildService
import org.gradle.api.services.BuildServiceParameters

plugins {
    id "com.jfrog.artifactory" version "4.33.1"
    id 'com.gorylenko.gradle-git-properties' version '2.4.1' apply false
    id 'jacoco'
    id 'java'
    id 'java-library'
    id 'org.liquibase.gradle' version '2.2.0'
    id 'org.sonarqube' version '4.2.1.3168'
    id 'org.springframework.boot' version '3.1.1' apply false
    id 'org.jetbrains.kotlin.jvm' version '1.9.0'
    id 'org.jetbrains.kotlin.plugin.jpa' version '1.9.0'
    id 'org.jetbrains.kotlin.plugin.spring' version '1.9.0'
}

def artifactoryAuthentication(MavenArtifactRepository repo) {
    repo.credentials(PasswordCredentials) {
        username = project.findProperty("artifactory_user") ?: "your-username"
        password = project.findProperty("artifactory_token_secret") ?: "your-token"
    }
}

def noParallelUsageService = project.getGradle().getSharedServices().registerIfAbsent(
        "noParallelUsageService",
        AbstractService.class,
        spec -> {
            spec.getMaxParallelUsages().set(1)
        }
)

ext {
    platformVersion = '6.2.3'
}
def exclusionList = [
        "**/com/example/moduletemplate/configuration/*",
        "**/com/example/moduletemplate/YourApplication.java",
        "**/com/example/moduletemplate/service/configuration/*"
]
allprojects {
    group 'com.example.land'
    version '6.2.3'

    apply plugin: 'java-library'

    java {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }

    repositories {
        maven {
            url "${project.findProperty("artifactory_url") ?: 'your-artifactory-url'}/ap-releases/"
            artifactoryAuthentication it
        }
        maven {
            url "${project.findProperty("artifactory_url") ?: 'your-artifactory-url'}/ap-snapshots/"
            artifactoryAuthentication it
        }
        maven {
            url "${project.findProperty("artifactory_url") ?: 'your-artifactory-url'}/apache-maven/"
            artifactoryAuthentication it
        }
    }
}

subprojects {

    each {
        buildDir = "$project.rootDir/build/${project.path.replace(':', '/')}" as File
        afterEvaluate {
            if (!tasks.findByName('bootJar')?.enabled) {
                archivesBaseName = "${group}.${name}"
            }
        }

        tasks.withType(JavaCompile) {
            options.encoding = 'UTF-8'
            options.compilerArgs += [
                    '-Amapstruct.unmappedTargetPolicy=ERROR'
            ]
        }
    }

    // There is a problem with long paths on windows, so jacoco is not used than
    if (!System.properties['os.name'].toLowerCase().contains('windows')) {
        apply plugin: 'jacoco'
    }
    apply plugin: 'org.sonarqube'

    // let each subproject report the merged coverage report
    sonarqube {
        properties {
            property 'sonar.coverage.exclusions', exclusionList
            property 'sonar.coverage.jacoco.xmlReportPaths', "$project.rootDir/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml"
        }
    }

    testing {
        suites {
            test {
                targets {
                    configureEach {
                        testTask.configure {
                            finalizedBy jacocoTestReport
                            useJUnitPlatform()
                            maxHeapSize = "2048m"
                        }
                    }
                }
            }

            integrationTest(JvmTestSuite) {
                dependencies {
                    implementation project(':app')
                }

                sources {
                    java {
                        srcDirs = ['src/integrationTest/java']
                    }
                }

                targets {
                    configureEach {
                        testTask.configure {
                            shouldRunAfter(test)
                            usesService(noParallelUsageService)
                        }
                    }
                }
            }
        }
    }

    tasks.named('check') {
        dependsOn(testing.suites.integrationTest)
    }

    jacocoTestReport {
        reports {
            xml {
                enabled true
            }
            csv {
                enabled false
            }
            html {
                enabled false
            }
        }
    }

    dependencies {
        [
                'implementation', 'compileOnly', 'annotationProcessor',
                'testCompileOnly', 'testAnnotationProcessor',
                'integrationTestImplementation', 'integrationTestAnnotationProcessor',
        ].each {
            add it, enforcedPlatform("com.example:common-platform:${rootProject.ext.platformVersion}")
        }

        constraints {
            api 'com.example.gurobi:gurobi-environment:0.0.5'
            api 'com.example.gurobi:gurobi-lib:9.1'
            api 'com.example.gurobi:gurobi-linux-lib:9.1.2'
            api 'com.example:balancing-optimization:1.0-SNAPSHOT'
            api "com.example:common-auth:${rootProject.ext.platformVersion}"
            api "com.example:common-base:${rootProject.ext.platformVersion}"
            api "com.example:common-gdpr:${rootProject.ext.platformVersion}"
            api "com.example:common-defaultproperties:${rootProject.ext.platformVersion}"
            api 'com.example:tier-calculations-backend:14'
            api "com.example:common-content-translation-settings:${rootProject.ext.platformVersion}"
        }

        implementation(
                'org.springframework.boot:spring-boot-starter-logging',
                'org.springframework.boot:spring-boot-starter-validation',
                'org.mapstruct:mapstruct',
                'org.mapstruct:mapstruct-processor'
        )

        compileOnly(
                'org.projectlombok:lombok',
                'com.google.code.findbugs:jsr305'
        )

        annotationProcessor(
                'org.projectlombok:lombok',
                'org.mapstruct:mapstruct',
                'org.mapstruct:mapstruct-processor',
                'org.projectlombok:lombok-mapstruct-binding',
                'org.mapstruct.extensions.spring:mapstruct-spring-extensions',
                'org.mapstruct.extensions.spring:mapstruct-spring-annotations',
                'org.mapstruct:mapstruct-processor',
                'org.hibernate:hibernate-jpamodelgen'
        )

        runtimeOnly(
                'com.h2database:h2'
        )

        testImplementation(
                'org.junit.jupiter:junit-jupiter',
                'org.assertj:assertj-core',
                'org.mockito:mockito-core',
                'org.mockito:mockito-junit-jupiter',
                'org.hamcrest:hamcrest',
                'org.springframework.boot:spring-boot-test'
        )

        testCompileOnly(
                'org.projectlombok:lombok'
        )

        testRuntimeOnly(
                'org.junit.platform:junit-platform-engine',
                'org.junit.platform:junit-platform-commons'
        )

        testAnnotationProcessor(
                'org.projectlombok:lombok',
                'org.mapstruct:mapstruct',
                'org.mapstruct:mapstruct-processor',
                'org.projectlombok:lombok-mapstruct-binding',
                'org.mapstruct.extensions.spring:mapstruct-spring-extensions',
                'org.mapstruct.extensions.spring:mapstruct-spring-annotations',
                'org.mapstruct:mapstruct-processor'
        )

        pluginManager.withPlugin('java-test-fixtures') {
            ['testFixturesImplementation', 'testFixturesAnnotationProcessor'].each {
                add it, enforcedPlatform("com.example:common-platform:${rootProject.ext.platformVersion}")
            }

            testFixturesImplementation(
                    'org.projectlombok:lombok',
                    'org.mapstruct:mapstruct',
                    'org.mapstruct:mapstruct-processor',
            )

            testFixturesAnnotationProcessor(
                    'org.projectlombok:lombok',
                    'org.mapstruct:mapstruct',
                    'org.mapstruct:mapstruct-processor',
                    'org.projectlombok:lombok-mapstruct-binding',
                    'org.mapstruct.extensions.spring:mapstruct-spring-extensions',
                    'org.mapstruct.extensions.spring:mapstruct-spring-annotations',
                    'org.mapstruct:mapstruct-processor'
            )
        }
    }

}

task codeCoverageReport(type: JacocoReport) {

    // Gather execution data from all subprojects
    executionData fileTree(project.rootDir.absolutePath).include("build/**/jacoco/*.exec")

    // Add all relevant sourceSets from the subprojects
    subprojects.each {
        sourceSets it.sourceSets.main
    }

    reports {
        xml.required = true
        csv.required = false
        html.required = false
    }
}

// always run the tests before generating the report
codeCoverageReport.dependsOn {
    subprojects*.check
}

// automatically create the codeCoverageReport after running check
check {
    finalizedBy codeCoverageReport
}

abstract class AbstractService implements BuildService<BuildServiceParameters.None> {}

Well like the error says the dependency is not found in any Repository you have specified

You should start here:
https://docs.jfrog-applications.jfrog.io/ci-and-sdks/ci-integrations/artifactory-gradle-plugin
where you can find out about that library – well, I think that’s the plugin you are trying to use.

A public repository for the artefacts is here: https://mvnrepository.com/artifact/org.jfrog.artifactory/com.jfrog.artifactory.gradle.plugin

Notice carefully the path you have typed org.jfrog.artifactory doesn’t match that above reference, so maybe there is a fault there. But otherwise that Maven repository only has 1 version and the number it has is 4.26.3 different to what you have listed in your gradle config.

I have not used this plugin, but I would start by changing the version to 4.26.3 and see how you get on.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật