mavenPublishing {
    publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL)

    coordinates("io.github.glailton", "expandabletextview", "1.0.5")

    pom {
        name = "ExpandableTextView"
        description = "An expandable Android TextView written in Kotlin."
        inceptionYear = "2024"
        url = "https://github.com/glailton/ExpandableTextView"

        licenses {
            license {
                name = "MIT License"
                url = "https://opensource.org/licenses/MIT"
            }
        }

        developers {
            developer {
                id = "glailton"
                name = "Glailton Costa"
                email = "glailton.rc@gmail.com"
            }
        }

        scm {
            connection = "scm:git:https://github.com/glailton/ExpandableTextView.git"
            developerConnection = "scm:git:https://github.com/glailton/ExpandableTextView.git"
            url = "https://github.com/glailton/ExpandableTextView"
        }
    }
}
